Pular para o conteúdo principal
PATCH
Reschedule a failed conversation scheduled message

Autorizações

api_access_token
string
header
obrigatório

Token de acesso do usuário (Perfil → Token de acesso). Dá acesso conforme o papel do usuário e age em nome dele.

Parâmetros de caminho

account_id
string
obrigatório

The numeric ID of the account

conversation_id
string
obrigatório

The numeric ID of the conversation

id
integer
obrigatório

ID of the failed scheduled message in this conversation

Corpo

application/json
scheduled_message
object
obrigatório

Resposta

The reactivated scheduled message

id
integer

The ID of the scheduled message

Exemplo:

123

content
string

The content of the message to be sent

Exemplo:

"Hello {{name}}, your appointment is confirmed for tomorrow at 10:00 AM"

scheduled_at
integer

The timestamp when the message should be sent (Unix timestamp)

Exemplo:

1738800000

sent_at
integer | null

The timestamp when the message was actually sent (Unix timestamp)

Exemplo:

null

title
string | null

Optional title for the scheduled message

Exemplo:

"Daily appointment reminder"

inbox_id
integer

The ID of the inbox from which the message will be sent

Exemplo:

42

inbox_name
string

The name of the inbox

Exemplo:

"WhatsApp Business"

conversation_id
integer | null

The ID of the conversation if associated with one

Exemplo:

567

contact_id
integer | null

The ID of the contact to send the message to

Exemplo:

789

contact_name
string | null

The name of the contact

Exemplo:

"María González"

contact_phone
string | null

The phone number of the contact

Exemplo:

"+525512345678"

contact_email
string | null

The email of the contact

Exemplo:

"maria.gonzalez@example.com"

message_id
integer | null

The ID of the actual message after it's sent

Exemplo:

null

created_at
integer

The timestamp when the scheduled message was created (Unix timestamp)

Exemplo:

1738713600

status
enum<string>

The status of the scheduled message (pending = waiting to be sent, sent = successfully delivered, failed = sending error)

Opções disponíveis:
pending,
sent,
failed
Exemplo:

"pending"

error_message
string | null

Error message if the sending failed

Exemplo:

null

template_params
object | null

WhatsApp template parameters if using a template

attachments
object[]

Array of attachments (max 15)

recurrence_type
enum<string>

The type of recurrence for the scheduled message (none = single send, daily = every day, weekly = every week, monthly = every month, yearly = once per year)

Opções disponíveis:
none,
daily,
weekly,
monthly,
yearly
Exemplo:

"daily"

recurrence_interval
integer | null

Interval for recurrence (e.g., 2 for every 2 days/weeks/months, 1 for every day/week/month)

Exemplo:

1

recurrence_days
integer[] | null

Days of the week for weekly recurrence (0=Sunday, 1=Monday, ..., 6=Saturday)

Exemplo:
recurrence_end_type
enum<string> | null

How the recurrence should end (never = infinite, on_date = until specific date, after_occurrences = after N times)

Opções disponíveis:
never,
on_date,
after_occurrences
Exemplo:

"never"

recurrence_end_date
integer | null

End date for recurrence if end_type is 'on_date' (Unix timestamp)

Exemplo:

null

recurrence_max_occurrences
integer | null

Maximum number of occurrences if end_type is 'after_occurrences'

Exemplo:

null

recurrence_count
integer

Current count of occurrences (how many times this recurring message has been sent)

Exemplo:

0

parent_id
integer | null

Parent scheduled message ID if this is a recurring occurrence (null for original, ID for recurring copies)

Exemplo:

null

assignee_id
integer | null

The ID of the assigned agent who created the scheduled message

Exemplo:

15

assignee_name
string | null

The name of the assigned agent

Exemplo:

"Carlos Ramírez"

assignee_avatar_url
string | null

The avatar URL of the assigned agent