Python (SDK)
Collaborators
Add or re-role a collaborator
Adds a collaborator or changes their role (owner or org admin only): DB upsert (authoritative) then a best-effort fga grant. Owner is not a grantable role — it is fixed to the creator at create time.
PUT
Python (SDK)
Authorizations
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
Optional external end-user identifier forwarded by the API gateway.
Path Parameters
The organization URL slug.
The repository name (URL label).
Pattern:
^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$The collaborator's external user id.
Body
application/json
The role to grant. owner is not grantable — it is fixed to the
creator at create time.
Available options:
reader, writer