Delete an application assignment

DELETE /v1/organizations/{org_id}/applications/{application_id}/assignments/{assignment_id} · permission organizations:write

Deletes the assignment. The deletion is recorded in the management audit log as application_assignment.deleted.

Request

Field Type Required Description
org_id path yes Organization ID (org_…).
application_id path yes Application ID (app_…).
assignment_id path yes Assignment ID (aas_…).

No request body.

Response

204 No Content.

Errors

HTTP code When
404 not_found No assignment with this ID exists for this organization and application.
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/organizations/org_01j9xk3m7q8r2s4t6v8w0y2z4a/applications/app_01j9xm4n8r9s3t5v7w9x1y3z5b/assignments/aas_01j9xq6r0t1v5w7x9y1z3a5b7d" \
  -H "Authorization: Bearer $KEENAUTH_SECRET_KEY"