Skip to main content

Update a user

Update a user

Request Body REQUIRED
name string

The name of the user

email string

The email address of the user. Set to null to remove

externalUid string

External unique identifier for the user from an external system. Set to null to remove

phone string

Phone number of the user. Set to null to remove

segments string[]

Array of segment names the user belongs to

companyId string

ID of the company the user belongs to. Set to null to remove

Responses
200

Update a single user

Schema OPTIONAL
user object

The user data

id string

Unique identifier of the user

clientId string

Client identifier

createdAt date-time

Creation date of the user

updatedAt date-time

Last update date of the user

name string

Name of the user

type string

Possible values: [CUSTOMER, COLLABORATOR, COMPANY_DEFAULT]

Type of the user

email string OPTIONAL

Email address of the user (can be empty)

phone string OPTIONAL

Phone number of the user

companyId string OPTIONAL

Identifier of the company the user belongs to

importId string OPTIONAL

Only defined when the user was created from XLSX import, equal to its defined ID

externalUid string OPTIONAL

Only defined when external uid has been setup in Harvestr and when the entity has an external uid in source

segments object[]

Segments associated with this user

id string

Unique identifier of the segment

clientId string

Client identifier

name string

Name of the segment

createdAt date-time

Creation date of the segment

updatedAt date-time

Last update date of the segment