Skip to content

update_principal

PATCH
/admin/principals/{id}
curl --request PATCH \
--url http://localhost:3001/admin/principals/00000000-0000-0000-0000-000000000000 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"code":null,"display_name":null,"external_subject":null,"principal_type":null,"status":null}'
id
required
string format: uuid

Principal ID

Media typeapplication/json
object
code
string
nullable
display_name
string
nullable
external_subject
string
nullable
principal_type
string
nullable
status
string
nullable

Example generated

{
"code": "example",
"display_name": "example",
"external_subject": "example",
"principal_type": "example",
"status": "example"
}

Updated

Media typeapplication/json
object
code
required
string
created_at
required
string format: date-time
display_name
string
nullable
external_subject
string
nullable
id
required
string format: uuid
principal_type
required
string
status
required
string
updated_at
required
string format: date-time

Example generated

{
"code": "example",
"created_at": "2026-04-15T12:00:00Z",
"display_name": "example",
"external_subject": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"principal_type": "example",
"status": "example",
"updated_at": "2026-04-15T12:00:00Z"
}

Not found