PATCH /manager/ambassadors/{id}/decline

the refused candidate will receive an email with the reason of the refusal and be immediately deleted from the database

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

application/json

Body

  • reason string

    The reason of the decline

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}/decline
curl \
 --request PATCH 'https://domain.tld/api/v2/manager/ambassadors/{id}/decline' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"reason":"Your account has been declined because you think pineapple belongs on pizza"}'
Request examples
{
  "reason": "Your account has been declined because you think pineapple belongs on pizza"
}
Response examples (200)
{
  "message": "Ambassador declined successfully"
}
<html><body><h1>Preview</h1></body></html>