Skip to main content
POST
/
users
cURL
curl --request POST \
  --url https://api.example.com/users \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "jsmith@example.com",
  "unit": 123,
  "userTypes": [
    123
  ],
  "welcome": true
}
'
{
  "data": {
    "content_type": "user",
    "id": 1,
    "reference": "USR-123",
    "name": "John Doe",
    "first_name": "John",
    "last_name": "Doe",
    "title": "Manager",
    "active": true,
    "meta_field_0": "<string>",
    "meta_field_1": "<string>",
    "meta_field_2": "<string>",
    "meta_field_3": "<string>",
    "meta_field_4": "<string>",
    "permissions": {},
    "avatar": {},
    "unit": {},
    "physicalUnit": {},
    "department": {},
    "userTypes": [
      {}
    ],
    "memberGroups": [
      {}
    ],
    "memberUnits": [
      {}
    ],
    "specialties": [
      {}
    ],
    "twoFactor": {},
    "provider": [
      "<string>"
    ],
    "all_integrations": [
      {}
    ],
    "devices": [
      {}
    ],
    "participant_type": "<string>",
    "url": "api/users/1"
  }
}

Body

application/json
first_name
string
required
last_name
string
required
email
string<email>
required
unit
integer
required
userTypes
integer[]
welcome
boolean
default:true

Send welcome email

Response

User created

data
object