Plan a notification for a message
Plan a notification for a message (so the legacy cron system can send it)
Path parameters
-
The message id
POST /chat/messages/{id}/plan-notification
curl \
-X POST https://domain.tld/api/v2/chat/messages/{id}/plan-notification \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id_ambassador_target":5}'
Request examples
{
"id_ambassador_target": 5
}
Response examples (200)
{
"message": "Notification planned successfully"
}
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"
]
}
}