POST
/
customers
/
{customerID}
/
users
curl --request POST \
  --url https://api.joinworth.com/auth/api/v1/customers/{customerID}/users \
  --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": "success",
  "message": "Customer user created.",
  "data": {
    "user_id": "053cfb4b-2073-4ede-afc0-26579bb3e1b8"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

customerID
string
required

Body

application/json
first_name
string
required

First name of the user

last_name
string
required

Last name of the user

email
string
required

Email address of the user

subrole
object
required

Subrole details

mobile
string

Mobile number of the user

Response

200
application/json
OK
status
string
required
Example:

"success"

message
string
required
Example:

"Customer user created."

data
object
required