Update subscribed alerts for an ambassador (manager)
Path parameters
-
The ambassador id
PATCH /manager/ambassadors/{id}/alerts
curl \
-X PATCH https://domain.tld/api/v2/manager/ambassadors/{id}/alerts \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"alerts":[42]}'
Request examples
{
"alerts": [
42
]
}
Response examples (200)
[
{
"id": 42,
"name": "string",
"isManagerAlert": true
}
]
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"
]
}
}