Query parameters
-
if set , the preview of the mail sent to the ambassador will be returned , no mail will be sent
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)
Success
{
"message": "Ambassador declined successfully"
}
<html><body><h1>Preview</h1></body></html>
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"
]
}
}