PUT
/
v1
/
organizations
/
{organizationId}
/
users
/
{userId}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Path Parameters

organizationId
string
required

Fabric internal id of the record

userId
string
required

Fabric internal id of the record

Body

application/json
email
string
required

email of the user.

username
string
required

The unique string used to identify a user.

Minimum length: 1
additionalAttributes
object

Contains all additional attributes not captured in the schema.

firstName
string

first name of the user. If sent it has to contain 1 character or more.

groupId
string

Fabric internal id of the group record.

lastName
string

last name of the user. If sent it has to contain 1 character or more.

primaryPhone
string

primary phone of the user. If sent it has to contain 2 characters or more.

Minimum length: 2
role
string

role of the user

status
enum<string>

status of the user. Default value will be PENDING.

Available options:
ACTIVE,
INACTIVE,
PENDING
title
string

title of the user. If sent it has to contain 1 character or more.

userId
string

user identifier

Response

200 - application/json
_id
string
required

Fabric internal id of the record.

createdAt
string
required

date of creation of the record

isDeleted
boolean
required

flag that indicates if the record is deleted

updatedAt
string
required

laste date of update of the record

username
string
required

user name of the user. It must be UNIQUE.

additionalAttributes
object

Contains all additional attributes not captured in the schema.

email
string

email of the user

firstName
string

first name of the user

groupId
string

Fabric internal id of the group record.

lastName
string

last name of the user

primaryPhone
string

primary phone of the usr

role
string

role of the user

status
enum<string>

status of the user. Default value will be PENDING.

Available options:
ACTIVE,
INACTIVE,
PENDING
title
string

title of the usr

userId
string

user identifier