POST
/
users
curl --request POST \
  --url https://api.neobrain.io/{version}/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "employeeId": "ABC12345",
  "firstName": "John",
  "lastName": "Doe",
  "email": "john@example.com",
  "secondaryEmail": "john2@example.com",
  "phone": "+33 6 12 34 56 78",
  "secondaryPhone": "+33 6 12 34 56 78",
  "gender": 1,
  "locale": "fr",
  "nationality": "FR",
  "birthDay": "2007-06-23",
  "address": "16 Rue de Triomphe",
  "city": "Paris",
  "zipcode": 75015,
  "country": "France",
  "status": 1,
  "isManager": 1,
  "managerId": "ABC12345",
  "rhId": "ABC12345",
  "jobId": "ABC12345",
  "additionalFields": [
    {
      "externalFieldId": "external_field_code",
      "value": "Technical team"
    }
  ]
}'
{
  "id": 0,
  "employeeId": "ABC12345",
  "firstName": "John",
  "lastName": "Doe",
  "email": "john@example.com",
  "secondaryEmail": "john2@example.com",
  "phone": "+33 6 12 34 56 78",
  "secondaryPhone": "+33 6 12 34 56 78",
  "gender": 1,
  "locale": "fr",
  "birthDay": "2007-06-23",
  "nationality": "FR",
  "address": "16 Rue de Triomphe",
  "city": "Paris",
  "zipcode": 75015,
  "country": "France",
  "status": 1,
  "isManager": 1,
  "managerId": 123,
  "managerEmployeeId": "ABC0000",
  "job": [
    {
      "id": 0,
      "externalId": "ABC",
      "title": "Java Developer"
    }
  ],
  "additionalFields": [
    {
      "externalFieldId": "external_field_code",
      "name": "Field Name",
      "value": "2007-06-23"
    }
  ]
}

Authorizations

Authorization
string
header
required

API token for the Authorization header parameter.

Body

application/json

Response

201
application/json

Success

The response is of type object.