PUT
/
v1
/
users
/
:id
curl --location --request PUT 'https://api.stateset.com/v1/users/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "user_group_id": "example_1",
    "name": "Example 1",
    "mapping": {"40": "213", "134": "386"},
    "properties": {"filterValue": "value"}
}'
{
  "success": 1,
  "user_group": {
    "team_id": 113,
    "token": "<user_group_token_to_auth_dashboard>",
    "name": "ok",
    "provided_id": "6"
  }
}

Body

id
string

This is the id of the user. It is used to identify the user.

active
boolean

Indicates if the user is currently active

avatar
string

URL or path to the user’s avatar image

bio
string

Biography or description of the user

birthday
date

Date of birth of the user

country
string

Country of residence of the user

email
string

Email address of the user

firstName
string

First name of the user

lastName
string

Last name of the user

last_seen
date

Date and time when the user was last seen

last_typed
date

Date and time when the user last typed a message

location
string

Location or address of the user

organization
string

Organization or company the user belongs to

phone
string

Phone number of the user

regions
string

Regions or areas associated with the user

title
string

Title or job position of the user

twitter
string

Twitter handle or username of the user

username
string

Unique username of the user

Response

id
string

This is the id of the user. It is used to identify the user.

active
boolean

Indicates if the user is currently active

avatar
string

URL or path to the user’s avatar image

bio
string

Biography or description of the user

birthday
date

Date of birth of the user

country
string

Country of residence of the user

email
string

Email address of the user

firstName
string

First name of the user

lastName
string

Last name of the user

last_seen
date

Date and time when the user was last seen

last_typed
date

Date and time when the user last typed a message

location
string

Location or address of the user

organization
string

Organization or company the user belongs to

phone
string

Phone number of the user

regions
string

Regions or areas associated with the user

title
string

Title or job position of the user

twitter
string

Twitter handle or username of the user

username
string

Unique username of the user