Skip to contentSkip to navigationSkip to topbar

Partially Update a Conversation


(information)

Legal information

Conversation Orchestrator, including the APIs, may use artificial intelligence or machine learning technologies and is subject to the terms of the Predictive and Generative AI/ML Features Addendum(link takes you to an external page). For details on AI usage and data, see the AI Nutrition Facts for Real-Time Transcription and Conversation Relay.

Conversation Orchestrator is not a HIPAA Eligible Service or PCI compliant and should not be enabled in workflows that are subject to HIPAA or PCI.

Conversations products are only available in the new Twilio Console(link takes you to an external page). If your account hasn't been migrated, you'll be redirected to the legacy Console where these products won't appear.

PATCH/v2/Conversations/{Sid}

Base url: https://conversations.twilio.com (base url)

Partially update the details of an existing Conversation.


Request

patch-conversation-by-id-request page anchor

Authentication

authentication page anchor
Property nameTypeRequiredPIIDescription
sidstring
required
Not PII
Encoding type:application/json
Schema
Property nameTypeRequiredPIIDescriptionChild properties
namestring

Optional

The name of the Conversation.

Example: Support Chat

statusenum<string>

Optional

The state of the Conversation.

Possible values:
ACTIVEINACTIVECLOSED

configurationobject

Optional

Partial configuration update for an existing conversation. Only statusCallbacks can be modified.


200400404429500503

OK

SchemaExample
Property nameTypeRequiredPIIDescriptionChild properties
idstring

Optional

Conversation ID.

Example: conv_conversation_01k1etk2y5f1y9fpe2epfdtvv2

accountIdstring

Optional

Account ID.

Example: ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

configurationIdstring

Optional

Configuration ID.

Example: conv_configuration_01k1etk2y5f1y9fpe2epfdtvv2

statusenum<string>

Optional

Conversation status.

Example: ACTIVEPossible values:
ACTIVEINACTIVECLOSED

namestring

Optional

Conversation name.

Example: Customer Support Chat

createdAtstring<date-time>

Optional

Timestamp when this Conversation was created.

Example: 2023-07-01T12:00:00Z

updatedAtstring<date-time>

Optional

Timestamp when this Conversation was last updated.

Example: 2023-07-01T12:30:00Z

configurationobject

Optional

Full configuration settings for this Conversation.


participantsarray[object]

Optional

Participants in this Conversation.

Partially Update a ConversationLink to code sample: Partially Update a Conversation
1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function patchConversationById() {
11
const conversation = await client.conversations.v2
12
.conversations("Sid")
13
.patch({
14
name: "Miss Christine Morgan",
15
});
16
17
console.log(conversation.id);
18
}
19
20
patchConversationById();

Response

Note about this response
1
{
2
"accountId": "ZGkrHSypTsudrGkmdpJJ",
3
"configuration": {
4
"displayName": "My Support Config",
5
"description": "description",
6
"conversationGroupingType": "GROUP_BY_PROFILE",
7
"memoryStoreId": "memoryStoreId",
8
"channelSettings": {},
9
"statusCallbacks": [
10
{
11
"url": "https://www.example.com",
12
"method": "POST"
13
}
14
],
15
"intelligenceConfigurationIds": [
16
"intelligenceConfigurationIds"
17
],
18
"memoryExtractionEnabled": false,
19
"conversationsV1Bridge": {
20
"serviceId": "IS00000000000000000000000000000000"
21
}
22
},
23
"configurationId": "configurationId",
24
"createdAt": "2009-07-06T20:30:00Z",
25
"id": "id",
26
"name": "Miss Christine Morgan",
27
"participants": [
28
{
29
"id": "id",
30
"conversationId": "conversationId",
31
"accountId": "accountId",
32
"name": "name",
33
"type": "CUSTOMER",
34
"profileId": "profileId",
35
"addresses": [
36
{
37
"channel": "SMS",
38
"address": "address",
39
"channelId": "channelId"
40
}
41
],
42
"createdAt": "2009-07-06T20:30:00Z",
43
"updatedAt": "2009-07-06T20:30:00Z"
44
}
45
],
46
"status": "ACTIVE",
47
"updatedAt": "2009-07-06T20:30:00Z"
48
}