Skip to main content
POST
Grant permission to user or group

Body

application/json
user_or_group
string
required

User ID or group ID (without prefix)

Examples:

"alice@example.com"

"org-admins"

relation
string
required

Relation to grant (e.g., 'owner', 'admin', 'viewer')

Examples:

"owner"

"admin"

"developer"

resource_type
string
required

Type of resource (e.g., 'project', 'artifact', 'secret')

Examples:

"project"

"artifact"

"secret"

resource_id
string
required

ID of the resource

Examples:

"my-project"

"artifact-123"

"artifact-123/api-key"

is_group
boolean
default:false

Whether the subject is a group (default: False)

Response

Successful Response

Success response for permission operations.

message
string
required

Success message