Path parameters
-
The ambassador id
Body
-
Values are
status-administrator
,status-ambassador
,status-employee
,status-seller
,status-shop-manager
,status-manager
, orstatus-expert
. -
Values are
administrator
,editor
, orviewer
.
PATCH /manager/ambassadors/{id}/roles
curl \
-X PATCH https://domain.tld/api/v2/manager/ambassadors/{id}/roles \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"status_role":"status-administrator","manager_role":"administrator"}'
Request examples
{
"status_role": "status-administrator",
"manager_role": "administrator"
}
Response examples (200)
{
"message": "Roles synchronized successfully"
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}