Skip to content

create_principal

POST
/admin/principals
curl --request POST \
--url http://localhost:3001/admin/principals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"code":"string","display_name":null,"external_subject":null,"principal_type":"string","status":"string"}'
Media typeapplication/json
object
code
required
string
display_name
string
nullable
external_subject
string
nullable
principal_type
required
string
status
required
string

Example generated

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

Created

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"
}

Already exists