PATCH
/
customers
/
{customerID}
/
users
/
{userID}
curl --request PATCH \
  --url https://api.joinworth.com/auth/api/v1/customers/{customerID}/users/{userID} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "jsmith@example.com",
  "mobile": "<string>",
  "subrole": {
    "id": "<string>",
    "code": "<string>",
    "label": "<string>"
  },
  "status": "ACTIVE"
}'
{
  "status": "success",
  "message": "User details updated successfully"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

customerID
string
required
userID
string
required

Body

application/json
first_name
string

First name of the user

last_name
string

Last name of the user

email
string

Email address of the user

mobile
string

Mobile number of the user

subrole
object

Subrole details

status
enum<string>

User status (ACTIVE or INACTIVE)

Available options:
ACTIVE,
INACTIVE

Response

200
application/json
OK
status
string
required
message
string
required