Skip to main content
PUT
Python (SDK)

Authorizations

Authorization
string
header
required

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Headers

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Path Parameters

org
string
required

The organization URL slug.

name
string
required

The repository name (URL label).

Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$
user
string
required

The collaborator's external user id.

Body

application/json
role
enum<string>
required

The role to grant. owner is not grantable — it is fixed to the creator at create time.

Available options:
reader,
writer

Response

The collaborator and their role.

role
enum<string>
required

The collaborator's role. Listings may include owner (the creator); only reader/writer are grantable via the collaborator routes.

Available options:
reader,
writer,
owner
user
string
required

The collaborator's external user id.