Path parameters
-
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
-
401 application/json
Unauthorized.
-
Forbidden - You don't have permission to access this route
-
Not found - The ambassador does not exist
-
422 application/json
Unprocessable Content
PATCH /manager/ambassadors/{id}/approve
curl \
-X PATCH https://domain.tld/api/v2/manager/ambassadors/{id}/approve \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
Success (generated)
{
"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"
]
}
}