Skip to contentSkip to navigationSkip to topbar

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.

PUT/v2/Conversations/{id}

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

Update an existing conversation


Request

update-conversation-by-id-request page anchor

Authentication

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

Optional

The name of the Conversation.

Example: Support Chat

statusenum<string>
required

Lifecycle status of a Conversation.

Possible values:
ACTIVEINACTIVECLOSED

200400404429500503

OK

SchemaExample
Property nameTypeRequiredPIIDescriptionChild properties
idstring

Optional

Conversation ID.

Example: conv_conversation_00000000000000000000000001

accountIdstring

Optional

Account ID.

Example: ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

configurationIdstring

Optional

Configuration ID.

Example: conv_configuration_00000000000000000000000001

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.

Update a ConversationLink to code sample: 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 updateConversationById() {
11
const conversation = await client.conversations.v2
12
.conversations("id")
13
.update({
14
status: "ACTIVE",
15
});
16
17
console.log(conversation.id);
18
}
19
20
updateConversationById();

Response

Note about this response
1
{
2
"id": "id",
3
"accountId": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4
"configurationId": "conv_configuration_00000000000000000000000001",
5
"status": "ACTIVE",
6
"name": "Customer Support - Multi-channel",
7
"createdAt": "2023-07-01T12:00:00Z",
8
"updatedAt": "2023-07-01T12:30:00Z"
9
}