PATCH /manager/ambassadors/{id}/roles

Path parameters

  • id integer Required

    The ambassador id

application/json

Body

  • status_role string Required

    Values are status-administrator, status-ambassador, status-employee, status-seller, status-shop-manager, status-manager, or status-expert.

  • manager_role string(nullable) Required

    Values are administrator, editor, or viewer.

Responses

  • 200 application/json

    success

    Hide response attribute Show response attribute object
    • message string
  • 403

    Forbidden - You don't have permission to access this route

  • 404

    Not found - The ambassador does not exist

PATCH /manager/ambassadors/{id}/roles
curl \
 --request PATCH 'https://domain.tld/api/v2/manager/ambassadors/{id}/roles' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"status_role":"status-administrator","manager_role":"administrator"}'
Request examples
{
  "status_role": "status-administrator",
  "manager_role": "administrator"
}
Response examples (200)
{
  "message": "Roles synchronized successfully"
}