Skip to main content
POST
/
workspaceManagement
/
users
/
{uuid}
/
removePermission
Remove user permission
curl --request POST \
  --url https://api.getcargo.io/v1/workspaceManagement/users/{uuid}/removePermission \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "resourceUuid": "<string>",
  "effect": "allow"
}
'
{
  "permissions": [
    {
      "effect": "allow",
      "resources": [
        "<string>"
      ],
      "actions": [
        "ai:agent:*"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uuid
string
required

Resource UUID

Body

application/json

Request body schema.

resourceUuid
string
required
effect
enum<string>
required
Available options:
allow,
deny

Response

Successful response

permissions
object[]
required