put
https://sandbox-api.softpoint.io/interface/v1/locations/YOUR_LOCATION_ID/users/94
Updates an existing dashboard user. Use it to change contact information, reassign a role, or activate/deactivate the account.
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer YOUR_ACCESS_TOKEN |
| Content-Type | Yes | application/json |
Request Parameters
Path Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| location_id | integer | Yes | Location the user belongs to. |
| user_id | integer | Yes | ID of the user to update (the resource being modified). |
Request Body Fields:
| Field | Type | Required | Description |
|---|---|---|---|
| first_name | string | No | Updated first name. |
| last_name | string | No | Updated last name. |
| string | No | Updated email address. Must remain unique. | |
| phone | string | number | No |
| role_id | integer | No | 1 location 2 admin 3 owner |
| status | integer | No | 1 = active, 0 = inactive. Set 0 to deactivate. |
| user_id | integer | No | The acting user performing the request (distinct from the path user_id being edited). |
Request Example
{
"first_name": "Updated Name",
"last_name": "Doe",
"email": "[email protected]",
"phone": 1234567898,
"role_id": 2,
"status": 0,
"user_id": 2
}
cURL Example
curl --request PUT \
--url https://sandbox-api.softpoint.io/interface/v1/locations/4004699/users/94 \
--header "Authorization: Bearer YOUR_ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"first_name": "Updated Name",
"last_name": "Doe",
"email": "[email protected]",
"phone": 1234567898,
"role_id": 2
}'
Success Response
{
"id": 94,
"first_name": "Updated Name",
"last_name": "Doe",
"phone": "+1 (123) 456-7898",
"email": "[email protected]",
"global_country_id": 3,
"created_datetime": "2023-03-07T19:05:52.000000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| id | integer | The user's ID. |
| first_name | string | Current first name. |
| last_name | string | Current last name. |
| phone | string | Normalized phone number. |
| string | Current email address. | |
| global_country_id | integer | Associated country. |
| created_datetime | string (ISO 8601) | Original creation timestamp (unchanged by updates). |
Error Responses
User Not Found
Returned when the path user_id does not exist.
{
"error": {
"code": 10201,
"message": "The selected user doesn't exist.",
"details": null
}
}
Status Codes
| Code | Description |
|---|---|
| 200 | User updated |
| 400 | Validation failed or user does not exist |
Workflow Placement
Used during ongoing account maintenance, after a user has been created.
Notes
-
The
user_idin the path is the user being edited; theuser_idin the body identifies who is performing the edit. -
Set
statusto0to deactivate a user without deleting the record. -
A changed
emailmust still be unique.
Common Mistakes
-
Confusing the path
user_id(target) with the bodyuser_id(actor). -
Targeting a non-existent user ID (returns
10201). -
Setting an email already used by another account.

