Partially update a message. Only provided fields will be updated.
Setting text to null will clear the text field while leaving the title unchanged.
Responses
-
Message updated successfully
-
Bad Request -- Your request is invalid.
-
Unauthorized -- Your API key is wrong.
-
Forbidden -- The object requested is hidden for administrators only.
-
Not Found -- The specified object could not be found.
-
Too Many Requests -- You're requesting too many objects! Slow down!
-
Internal Server Error -- We had a problem with our server. Try again later.
-
Service Unavailable -- We're temporarily offline for maintenance. Please try again later.
PATCH
/requests/{requestId}/messages/{messageId}
curl \
--request PATCH 'https://api.usecollect.com/v1/requests/{requestId}/messages/{messageId}' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"text":"Updated body text...","title":"AI Agent - follow-up sent"}'
Request example
{
"text": "Updated body text...",
"title": "AI Agent - follow-up sent"
}
Response examples (200)
{
"id": "msg_123",
"text": "Updated body text...",
"title": "AI Agent - follow-up sent",
"createdAt": "2026-01-21T10:12:46.120Z",
"requestId": "req_456",
"updatedAt": "2026-01-21T10:20:01Z"
}