APIMessagesDraftsId
Edit a pending draft
PATCH
Replaces the text while the draft is pending and has not expired. Scope: messages:write.
bearerheader
AuthorizationBearer <mosc_...>A client key (mosc_).
id*integerThe draft id.
Range
0 < valueapplication/json- body
text*stringLength
1 <= length <= 2000The updated draft.
application/json- response
id*integerThe draft id.
status*stringtext*stringExample request
curl -X PATCH 'https://api.messageos.ai/v1/messages/drafts/42' \ -H 'Authorization: Bearer mosc_...' \ -H 'Content-Type: application/json' \ -d '{ "text": "Hi Pat, see you Tuesday at 3:00 PM."}'Example response
{ "id": 15, "status": "pending_approval", "text": "Hi Pat, this is a reminder about your visit on Tuesday at 3:00 PM."}