Edit an owned reply using its current lifecycle version
curl --request PATCH \
--url https://app.communicate.so/api/v1/workspaces/{workspaceId}/inbox/{conversationId}/messages/{messageId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"expectedVersion": 123
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({content: '<string>', expectedVersion: 123})
};
fetch('https://app.communicate.so/api/v1/workspaces/{workspaceId}/inbox/{conversationId}/messages/{messageId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.communicate.so/api/v1/workspaces/{workspaceId}/inbox/{conversationId}/messages/{messageId}"
payload = {
"content": "<string>",
"expectedVersion": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"workspaceId": "<string>",
"conversationId": "<string>",
"agentId": "<string>",
"role": "human",
"content": "<string>",
"channel": "widget",
"lifecycleStatus": "queued",
"lifecycleVersion": 123,
"revisionCount": 4503599627370495,
"authorMemberId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"dispatchAfterAt": "2023-11-07T05:31:56Z",
"undoDeadlineAt": "2023-11-07T05:31:56Z",
"sentAt": "2023-11-07T05:31:56Z"
}Inbox
Edit an owned reply using its current lifecycle version
Use an explicitly scoped user-bound account bearer credential or an application session. Scope grants are intersected with live membership, role, tenant isolation, agent access and plan limits; a credential does not grant an owner role. Invitation acceptance requires the verified recipient email.
PATCH
/
workspaces
/
{workspaceId}
/
inbox
/
{conversationId}
/
messages
/
{messageId}
Edit an owned reply using its current lifecycle version
curl --request PATCH \
--url https://app.communicate.so/api/v1/workspaces/{workspaceId}/inbox/{conversationId}/messages/{messageId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"expectedVersion": 123
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({content: '<string>', expectedVersion: 123})
};
fetch('https://app.communicate.so/api/v1/workspaces/{workspaceId}/inbox/{conversationId}/messages/{messageId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.communicate.so/api/v1/workspaces/{workspaceId}/inbox/{conversationId}/messages/{messageId}"
payload = {
"content": "<string>",
"expectedVersion": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"workspaceId": "<string>",
"conversationId": "<string>",
"agentId": "<string>",
"role": "human",
"content": "<string>",
"channel": "widget",
"lifecycleStatus": "queued",
"lifecycleVersion": 123,
"revisionCount": 4503599627370495,
"authorMemberId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"dispatchAfterAt": "2023-11-07T05:31:56Z",
"undoDeadlineAt": "2023-11-07T05:31:56Z",
"sentAt": "2023-11-07T05:31:56Z"
}Authorizations
accountBeareraccountSessionlocalAccountSession
Opaque user-bound ca_ account credential. Each request checks live account scopes, verified email, expiry, revocation and the issuer session. Not a workspace ck_ key or OAuth access token.
Path Parameters
Minimum string length:
1Minimum string length:
1Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Body
application/json
Response
Edit an owned reply using its current lifecycle version
Minimum string length:
1Minimum string length:
1Minimum string length:
1Minimum string length:
1Allowed value:
"human"Available options:
widget, email Available options:
queued, sending, sent, undone, failed, uncertain, bounced Required range:
x <= 9007199254740991Required range:
0 <= x <= 9007199254740991Minimum string length:
1Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$