cURL
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": "[email protected]", "subrole": { "id": "<string>", "code": "<string>", "label": "<string>" }, "mobile": "<string>" } '
{ "status": "success", "message": "Customer user created.", "data": { "user_id": "053cfb4b-2073-4ede-afc0-26579bb3e1b8" } }
Allows Customer to create a new user under a specific customer.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
First name of the user
Last name of the user
Email address of the user
Subrole details
Show child attributes
Mobile number of the user
OK
"success"
"Customer user created."
Was this page helpful?