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}/approve
curl \
--request PATCH 'https://domain.tld/api/v2/manager/ambassadors/{id}/approve' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
Success
{
"message": "Ambassador approved 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"
]
}
}