Skip to main content
PATCH
/
api
/
v0
/
repositories
/
{repo_id}
/
users
/
{user_id}
Update the user information in the context of a repository.
curl --request PATCH \
  --url https://api.example.com/api/v0/repositories/{repo_id}/users/{user_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "notificationInterest": {
    "system": true,
    "findingCreated": true,
    "findingUpdated": true,
    "commentsAll": true,
    "commentsReply": true,
    "assigned": true
  },
  "immediateNotificationFindingSeverity": {
    "critical": true,
    "high": true,
    "medium": true,
    "low": true,
    "informational": true,
    "gasOptimization": true
  },
  "notificationFindingAssetGroupIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "notificationFindingSafeHarbor": true
}
'
{
  "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
user_id
string<uuid>
required

Body

application/json

Update User information in the context of a repository.

notificationInterest
object

When the interests are deleted it will use the user's default notification interest.

notificationFrequency
null | enum<string>

When the frequency is deleted it will use the user's default notification frequency.

Available options:
immediate,
daily,
default
immediateNotificationFindingSeverity
object

Specifies whether the user wants to receive immediate notifications for findings with specific severities.

repositoryRole
null | enum<string>

Role the user has in the repository.

Allowed changes:

FromTo clientTo judgeTo triagerTo reviewerTo admin
ClientNo-opOkOkNoNot in competitions
JudgeOkNo-opOkNoYes
TriagerOkOkNo-opNoYes
ReviewerNoNoNoNo-opNo
AdminOkOkOkNoNo-op
Available options:
client,
reviewer,
judge,
triager,
admin
notificationFindingAssetGroupIds
string<uuid>[] | null

Asset group IDs for filtering finding notifications.

notificationFindingSafeHarbor
boolean | null

Safe harbor asset notification preference.

Response

Update successful