PATCH /manager/ambassadors/{id}/approve

Path parameters

  • id integer Required

    The ambassador id

Query parameters

  • preview-mail boolean

    if set , the preview of the mail sent to the ambassador will be returned , no mail will be sent

Responses

  • 200 application/json

    success

    One of:

    HTML preview of the mail sent to the ambassador, only returned if parameter preview-mail is set in the query

  • 403

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

  • 404

    Not found - The ambassador does not exist

PATCH /manager/ambassadors/{id}/approve
curl \
 --request PATCH 'https://domain.tld/api/v2/manager/ambassadors/{id}/approve' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "message": "Ambassador approved successfully"
}
<html><body><h1>Preview</h1></body></html>