Skip to main content
PATCH
/
api
/
v0
/
repositories
/
{repo_id}
Update a single repository.
curl --request PATCH \
  --url https://api.example.com/api/v0/repositories/{repo_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "engagementId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "timeframe": {
    "start": "2023-11-07T05:31:56Z",
    "end": "2023-11-07T05:31:56Z"
  },
  "currencyCode": "<string>",
  "totalRewardPot": "<string>",
  "primaryPot": "<string>",
  "additionalPotSplit": [
    {
      "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "amount": "<string>",
      "isTip": true
    }
  ],
  "stakeAmount": "<string>",
  "submissionFee": "<string>",
  "assetGroups": [
    {
      "name": "<string>",
      "description": "<string>",
      "outOfScope": true,
      "rewards": [
        {
          "minReward": "<string>",
          "maxReward": "<string>"
        }
      ],
      "assets": [
        {
          "name": "<string>",
          "description": "<string>",
          "reference": "<string>"
        }
      ],
      "subGroups": [
        {
          "name": "<string>",
          "assets": [
            {
              "name": "<string>",
              "description": "<string>",
              "reference": "<string>"
            }
          ],
          "description": "<string>"
        }
      ]
    }
  ],
  "safeHarbor": {
    "description": "<string>",
    "reward": "<string>",
    "returnAddresses": [
      {
        "address": "<string>"
      }
    ],
    "cap": "<string>",
    "assets": [
      {
        "name": "<string>",
        "description": "<string>"
      }
    ]
  },
  "instructions": "<string>",
  "allowedSeverities": [],
  "consideredSeverities": [],
  "pointCalculation": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "allowedLabels": [
    {
      "name": "<string>",
      "reviewerRead": true,
      "reviewerUse": true,
      "description": "<string>"
    }
  ],
  "showAllFindings": true,
  "publicMetadata": true,
  "kycRequired": true,
  "requiredCtfAddress": "<string>"
}
'
{
  "msg": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cantina.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

repo_id
string<uuid>
required

Body

application/json
name
string | null
engagementId
string<uuid> | null
timeframe
object

Represent a range where the start is always set but the end is optional.

kind
null | enum<string>
Available options:
scoping,
collaborative_review,
private_contest,
public_contest,
private_bounty,
public_bounty
status
null | enum<string>

Status of a repository.

Available options:
draft,
upcoming,
live,
judging,
escalations,
escalations_ended,
complete,
published
currencyCode
string | null
totalRewardPot
string | null
primaryPot
string | null
additionalPotSplit
object[] | null
stakeAmount
string | null
submissionFee
string | null
assetGroups
object[] | null

Update asset groups.

safeHarbor
object
instructions
string | null
allowedSeverities
enum<string>[] | null

Severity of a [Finding].

Available options:
critical,
high,
medium,
low,
informational,
gas_optimization
consideredSeverities
enum<string>[] | null

Severity of a [Finding].

Available options:
critical,
high,
medium,
low,
informational,
gas_optimization
pointCalculation
string<uuid> | null
allowedLabels
object[]

Delete or add labels to a repository.

showAllFindings
boolean | null

Show all findings to researchers during judging and escalations

publicMetadata
boolean | null
kycRequired
boolean | null
companyUserAccess
null | enum<string>

Company user access level for a repository.

Available options:
open,
restricted
requiredCtfAddress
string | null

Response

Repository updated