コンテンツにスキップ

Delete relationship for an admin user

DELETE
/api/admin/admins/{userId}/relationships/{relationshipId}
Code sample: Shell / cURL
curl --request DELETE \
--url https://auth.example.com/api/admin/admins/example/relationships/example \
--header 'Authorization: Bearer <token>'

Deletes a tenant-scoped admin relationship by ID. The implementation checks tenant ownership of the relationship.

userId
required
string

Admin user ID.

relationshipId
required
string

Relationship ID.

Relationship deleted.

Media type application/json
object
success
required
boolean
key
additional properties
Example
{
"success": true
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}