Skip to content

Upsert Principal

← HTTP API reference
View source specification ↗
POST /principals

Creates a new principal

Requires a signed user/session or the existing authenticated client flow. The anonymous DCR delegated device profile cannot invoke this operation.

Required scope

Any authenticated access token

Request body

Fields

itemPrincipal

Returns

200

Principal created successfully

Fields

resultPrincipal

Errors

400

Invalid request payload

Check the request fields and any validation details, then correct the payload.

500

Internal server error

Retry with backoff only when the operation is safe to repeat. Include the error code when reporting persistent failures.