Detach a role from an admin API key
One step with Flagsmith. We can help you get access.
Get something done
Detach a role from an admin API key
with Flagsmith
Works with AI assistants
Use Flagsmith: its Flagsmith Organisations API lets you detach a role from an admin API key in a single step (DELETE /api/v1/organisations/{organisation_pk}/master-api-keys/{api_key_prefix}/roles/{id}/detach-roles-from-master-api-key/). Flagsmith also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- Can I strip a role off a master API key without revoking the key?
- How would I narrow an admin key's access by detaching one role?
Say it to your AI assistant
- Detach role {id} from master API key {api_key_prefix} in organisation {organisation_pk}.
- Remove role {id} from admin key {api_key_prefix} of organisation {organisation_pk}.
For your developer
DELETE /api/v1/organisations/{organisation_pk}/master-api-keys/{api_key_prefix}/roles/{id}/detach-roles-from-master-api-key/ in Flagsmith Organisations API. Full spec on APIs.io.