Update conversation message

Update a message

patch

Update a draft conversation message. Sent messages cannot be updated. Setting draft to false causes the draft message to be sent.

Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstring · uuidRequired

The workspace ID

Example: b4e02c85-c6d2-4b15-8885-e09671799c61
conversationIdstring · uuidRequired

The conversation ID

Example: 67e4d358-ca94-421e-98b7-448860df9d33
messageIdstring · uuidRequired

The message ID

Example: f303d128-0619-49ce-9e2a-669098d7d78b
Body
draftboolean | nullableOptional

Whether the message is being drafted. Sent messages cannot be turned back into draft.

bodyall of | nullableOptional
and
anyOptional
or
or
or
or
or
or
or
or
or
or
statusstring · enum | nullableOptional

Message status. The lifecycle order is accepted, processing, sent, and delivered.

Possible values:
recipientsone of[] | nullableOptional

List of recipients.

or
addMissingParticipantsbooleanOptional

If enabled, conveniently adds missing participants to the conversation without requiring additional API calls to /participants. It's recommended to set this to true.

replyToMessageIdstring · uuidOptional

The ID of the message to reply to. This is only allowed for draft messages.

Responses
200

OK

application/json
patch
/workspaces/{workspaceId}/conversations/{conversationId}/messages/{messageId}

Examples

curl -X POST "https://api.bird.com/workspaces/a1405560-c8d3-4b1a-877d-3f449ad95352/conversations/16e1df9e-c6ac-406b-b1ce-13f34d0dea08/messages/884d1fa0-9335-484f-b6ca-96fb7e2c39f9" \
-H "Content-Type: application/json" \
-H "Authorization: AccessKey abcd" \
-d '{
  "draft": false,
  "body": {
    "type": "text",
    "text": {
      "text": "Hey, listen!"
    }
  }
}'

Last updated

Was this helpful?