Functions
Demote project admin to regular user
Set is_admin = false for a user by email. Lifecycle-gated for non-active projects. The user's next JWT will have role: authenticated (RLS-enforced).
post/projects/v1/admin/{project_id}/demote-user
Request
- Base URL: https://api.run402.com
- URL: https://api.run402.com/projects/v1/admin/{project_id}/demote-user
- Auth: HTTP bearer
Path parameters
project_idstring required
Run402 project ID. Public IDs are not UUIDs.
Example:prj_1741340000_0042
Request body
Response
User demoted
Example response
{
"status": "demoted"
}Changes
No recorded changes to this operation across all 1 revision of this API.