Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This method lets you add users, with or without login, to a client, a supplier or inhouse staff. In order to create an in-house user, specify the platform company id.

URL

(PUT) companies/{companyid}/persons

PARAMETERS

token

The token obtained on connection

Required

companyid

The company id of the person to add

Required

data

A json containing the person information (see below)

Required

 

JSON format of "data" parameter

 

LastNameThe last name of the personRequired
FirstNameThe first name of the personRequired
EmailThe email address of the person. This must be a valid email address or the API will return an error.Required
LoginThe login to connect. Use for example "John.Hollow" or "mylogin123". The minimum length of logins is 8 characters.Optional
PasswordThe password to connect. The password must comply with the password policy settings (see "Settings" > "Advanced security" in Wordbee Translator.Optional
UserProfileIdThe profile id of the person. See API call to enumerate profiles. Note that you cannot create a person with the Administrator profile and that you cannot delete the Administrator.Optional
IsActiveActivate or deactivate account. An inactive account cannot login. Boolean value. To activate a person you need to specify login, password and profile id as well.Default value if not set: falseOptional
PersonCodeThe person code. Default value: If not set, then preset with the first letter of the first name and the first letter of the last name.Optional
TitleThe person titleOptional
RoleThe person roleOptional
PhoneThe person phone numberOptional
PhoneMobileThe person mobile phone numberOptional
CommentsInternal comments on personOptional
LabelsSet a label: "labels": [ { "id": 10, "value": 1 }, … ] Clear a label: "labels": [ { "id": 10, "value": null }, … ] See chapter REF _Ref362347538 \r \h 12.5 to get the list of labels.Optional

 

RESULTS

The id of the created person. In case of invalid parameters an HTTP error code is returned.

...