Delete a ReBAC relationship tuple.
DELETE
/api/rebac/tuples
Code sample: Shell / cURL
curl --request DELETE \ --url https://auth.example.com/api/rebac/tuples \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "tenant_id": "tenant_123", "object_type": "document", "object_id": "doc_123", "relation": "viewer", "subject_type": "user", "subject_id": "user_123" }'Deletes the specified relationship tuple and invalidates related authorization cache entries.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
tenant_id
required
string
object_type
required
string
object_id
required
string
relation
required
string
subject_type
required
string
subject_id
required
string
expires_at
integer
Example
{ "tenant_id": "tenant_123", "object_type": "document", "object_id": "doc_123", "relation": "viewer", "subject_type": "user", "subject_id": "user_123"}Responses
Section titled “ Responses ”Successful JSON response.
Media type application/json
object
success
required
boolean
deleted
required
boolean
Example
{ "success": true, "deleted": true}