Users
Create a new user
Create a new user
post/api/v1/users
Request body
Example request
{
"email": "user@example.com",
"first_name": "John",
"last_name": "Doe",
"default_partner_id": "123e4567-e89b-12d3-a456-426614174001",
"default_merchant_id": "123e4567-e89b-12d3-a456-426614174001",
"roles": [
"partner:admin:123e4567-e89b-12d3-a456-426614174001"
]
}Response
Created
Example response
{
"success": true,
"data": {
"id": "123e4567-e89b-12d3-a456-426614174001",
"email": "user@example.com",
"first_name": "John",
"last_name": "Doe",
"default_partner_id": "123e4567-e89b-12d3-a456-426614174001",
"default_merchant_id": "123e4567-e89b-12d3-a456-426614174001",
"created_at": "2024-03-19T12:00:00Z",
"updated_at": "2024-03-19T12:00:00Z",
"role_assignments": [
{
"id": "123e4567-e89b-12d3-a456-426614174001",
"role": "global:admin",
"created_at": "2024-03-19T12:00:00Z"
}
]
}
}Changes
Changed in 2 of the 8 revisions of this API.11
- ○
endpoint added
endpoint-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 367 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲