Delete a role mapping

DELETE /v1/connections/{connection_id}/role-mappings/{mapping_id} · permission connections:write

Deletes the mapping. Roles granted through it are recalculated at the next sign-in. The deletion is audited as role_mapping.deleted.

Request

Field Type Required Description
connection_id path yes Enterprise connection ID (conn_…).
mapping_id path yes Role mapping ID (rmp_…).

No request body.

Response

204 No Content.

Errors

HTTP code When
404 not_found The mapping does not exist on this connection.
401 unauthenticated The credential is missing, invalid or revoked.
403 insufficient_permissions The credential lacks the required permission.
429 rate_limited The rate limit was exceeded; retry after the Retry-After period.
503 service_unavailable A dependency is temporarily unavailable; retry after the Retry-After period.

Example

curl -i -X DELETE "https://api.eu.keenauth.com/v1/connections/conn_01j9xp6q0r1s5t7v9w1x3y5z7b/role-mappings/rmp_01j9xw0x4y5z9a1b3c5d7e9f1h" \
  -H "Authorization: Bearer $KEENAUTH_SECRET_KEY"