Class: ConfigurationContext

Twilio.Conversations.V1.ServiceContext.ConfigurationContext(version, chatServiceSid)

new ConfigurationContext(version, chatServiceSid)

Initialize the ConfigurationContext
Parameters:
Name Type Description
version V1 Version of the resource
chatServiceSid sid The SID of the Service configuration resource to fetch
Source:

Classes

NotificationContext
NotificationInstance
NotificationList
NotificationPage

Methods

fetch(callbackopt) → {Promise}

fetch a ConfigurationInstance
Parameters:
Name Type Attributes Description
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed ConfigurationInstance
Type
Promise

notifications(sid) → {Twilio.Conversations.V1.ServiceContext.ConfigurationContext.NotificationContext}

Parameters:
Name Type Description
sid string sid of instance
Source:
Returns:
Type
Twilio.Conversations.V1.ServiceContext.ConfigurationContext.NotificationContext

toJSON()

Provide a user-friendly representation
Source:
Returns:
Object

update(optsopt, callbackopt) → {Promise}

update a ConfigurationInstance
Parameters:
Name Type Attributes Description
opts object <optional>
Options for request
Properties
Name Type Attributes Description
defaultConversationCreatorRoleSid string <optional>
The role assigned to a conversation creator when they join a new conversation
defaultConversationRoleSid string <optional>
The role assigned to users when they are added to a conversation
defaultChatServiceRoleSid string <optional>
The service role assigned to users when they are added to the service
reachabilityEnabled boolean <optional>
Whether the Reachability Indicator feature is enabled for this Conversations Service
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed ConfigurationInstance
Type
Promise