Skip to content

Upsert a user — server token only

POST
/v1/users
curl --request POST \
--url http://localhost:3000/v1/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "id": "example", "custom": {} }'
Media typeapplication/json
object
id
required
string
custom
required
object
key
additional properties
any
Examplegenerated
{
"id": "example",
"custom": {}
}

Upserted.

Media typeapplication/json
object
id
required
string
custom
required
object
key
additional properties
any
Examplegenerated
{
"id": "example",
"custom": {}
}

Authenticated but not permitted.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: VALIDATION_FAILED UNAUTHENTICATED FORBIDDEN NOT_FOUND CONFLICT RATE_LIMITED INTERNAL
message
required
string
requestId
required
string
fields

Present only for VALIDATION_FAILED.

Array<object>
object
path
string
message
string
Example
{
"error": {
"code": "VALIDATION_FAILED"
}
}