Skip to main content
PATCH
/
scheduled-message
/
{scheduledMessageId}
Atualizar mensagem agendada
curl --request PATCH \
  --url http://localhost:3001/scheduled-message/{scheduledMessageId} \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-JuriChat-Api-Key: <api-key>' \
  --form 'message=<unknown>' \
  --form 'type=<unknown>' \
  --form 'file=<unknown>' \
  --form 'caption=<unknown>' \
  --form 'fileName=<unknown>' \
  --form 'contactName=<unknown>' \
  --form 'contactPhoneNumber=<unknown>' \
  --form 'scheduledAt=<unknown>'
{
  "data": {
    "id": "<string>",
    "conversationId": "<string>",
    "userId": "<string>",
    "type": "<string>",
    "scheduledAt": "2023-11-07T05:31:56Z",
    "status": "PENDING",
    "sentAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "content": "<unknown>",
    "metadata": "<unknown>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.jurichat.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-JuriChat-Api-Key
string
header
required

Chave de API do escritório (criada no painel). Envie o valor no header X-JuriChat-Api-Key.

Path Parameters

scheduledMessageId
string
required

ID do agendamento.

Pattern: ^[cC][^\s-]{8,}$

Body

multipart/form-data
message
any

Novo texto. Aplicável quando type for text.

type
any

Novo tipo da mensagem: text, audio, image, video, document ou contact.

file
any

Novo arquivo de mídia. Substitui o arquivo atual quando enviado.

caption
any

Nova legenda da mídia.

fileName
any

Novo nome do arquivo.

contactName
any

Novo nome do contato (tipo contact).

contactPhoneNumber
any

Novo telefone do contato (tipo contact).

scheduledAt
any

Nova data e hora de envio no formato ISO 8601.

Response

Default Response

data
object
required