Update scheduled message
Edit a previously-queued message that has not dispatched yet (status `pending`).
Accepts the same flat body fields as Schedule message — type, text, mediaUrl, mediaBase64, mediaKind, mediaFilename, pollQuestion, pollOptions, pollAllowMultiple, sendAt, replyTo, secret — but every field is optional. Send only the fields you want to change; at least one is required. The recipient is fixed at schedule time (it was the {chatId} path param) and cannot be changed here.
Notes:
- A new
mediaUrl/mediaBase64is re-hosted to GCS just like on create;mediaKind/mediaFilenamecan be edited on their own. - Editing
textre-derives the link-preview card (auto-attached when the text contains a URL). sendAtreschedules (must be ≥10s in the future, ≤365 days).- Returns 400 once the message has advanced past the editable window (status not
pending).
Request
curl -X PATCH "https://api.blueticks.co/v1/scheduled-messages/" \ -H "Content-Type: application/json" \ -d '{ "text": "" }'{
"success": true,
"data": {
"id": "string",
"waMessageKey": {
"fromMe": true,
"remote": "string",
"id": "string",
"_serialized": "string",
"participant": "string"
},
"to": "string",
"type": "text",
"text": "string",
"mediaUrl": "string",
"mediaKind": "image",
"pollQuestion": "string",
"pollOptions": [
"string"
],
"pollAllowMultiple": true,
"status": "pending",
"sendAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"confirmedAt": "2019-08-24T14:15:22Z",
"receivedAt": "2019-08-24T14:15:22Z",
"readAt": "2019-08-24T14:15:22Z",
"playedAt": "2019-08-24T14:15:22Z",
"failedAt": "2019-08-24T14:15:22Z",
"failureReason": "string",
"secret": "string",
"linkPreview": {
"title": "string",
"description": "string",
"canonicalUrl": "string",
"thumbnail": "string"
}
}
}{
"success": false,
"error": {
"code": "string",
"message": "string",
"requestId": "string",
"details": [
{
"path": "string",
"code": "string",
"message": "string"
}
]
}
}Path Parameters
Request Body
application/json
Response
Response Body
application/json
application/json