Skip to main content
POST
Revoke permission from a user or remove public access

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.

Body

application/json
resourceType
enum<string>
required

Type of git resource

Available options:
repo
resourceId
string
required

Unique identifier for the resource

Required string length: 1 - 79
userId
string
required

Unique identifier for the user, or "*" to grant/revoke public access

Required string length: 1 - 169
role
enum<string>
required

Permission role for the resource (owner > writer > reader)

Available options:
owner,
writer,
reader

Response

Permission revoked successfully