PATCH /v1/admin/staff/\{id\}
Service: identity · operationId: (none)
Change a staff member’s role
Required scopes
(no scope declared — review service config)
Path parameters
id(string) required —
Request body
{
"type": "object",
"properties": {
"role": {
"type": "string",
"enum": [
"admin",
"support",
"coach",
"marketing"
]
}
},
"required": [
"role"
]
}Responses
200 Updated staff member
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"email": {
"type": "string",
"format": "email"
},
"role": {
"type": "string",
"enum": [
"admin",
"support",
"coach",
"marketing"
]
},
"status": {
"type": "string",
"enum": [
"pending",
"active",
"suspended",
"removed"
]
},
"workos_user_id": {
"type": [
"string",
"null"
]
},
"invited_by": {
"type": "string"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"accepted_at": {
"type": [
"string",
"null"
]
},
"suspended_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"email",
"role",
"status",
"workos_user_id",
"invited_by",
"created_at",
"updated_at",
"accepted_at",
"suspended_at"
]
}404 Not found
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"error",
"message"
]
}Example
curl -X PATCH https://identity.platform.loop.health/v1/admin/staff/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'Related
services/identity— service overview- All endpoints — directory across services
- Auth model — how scopes are enforced