Class: ConfigurationInstance

Twilio.Conversations.V1.ConfigurationInstance(version, payload)

new ConfigurationInstance(version, payload)

Initialize the ConfigurationContext
Parameters:
Name Type Description
version V1 Version of the resource
payload ConfigurationPayload The instance payload
Properties:
Name Type Description
accountSid string The SID of the Account responsible for this configuration.
defaultChatServiceSid string The SID of the default Conversation Service that every new conversation is associated with.
defaultMessagingServiceSid string The SID of the default Messaging Service that every new conversation is associated with.
defaultInactiveTimer string Default ISO8601 duration when conversation will be switched to `inactive` state.
defaultClosedTimer string Default ISO8601 duration when conversation will be switched to `closed` state.
url string An absolute URL for this global configuration.
links string Absolute URLs to access the webhook and default service configurations.
Source:

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

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
defaultChatServiceSid string <optional>
The SID of the default Conversation Service that every new conversation will be associated with.
defaultMessagingServiceSid string <optional>
The SID of the default Messaging Service that every new conversation will be associated with.
defaultInactiveTimer string <optional>
Default ISO8601 duration when conversation will be switched to `inactive` state.
defaultClosedTimer string <optional>
Default ISO8601 duration when conversation will be switched to `closed` state.
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed ConfigurationInstance
Type
Promise