Class: DefaultsInstance

Twilio.Autopilot.V1.AssistantContext.DefaultsInstance(version, payload, assistantSid)

new DefaultsInstance(version, payload, assistantSid)

Initialize the DefaultsContext PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
Parameters:
Name Type Description
version V1 Version of the resource
payload DefaultsPayload The instance payload
assistantSid sid The SID of the Assistant that is the parent of the resource
Properties:
Name Type Description
accountSid string The SID of the Account that created the resource
assistantSid string The SID of the Assistant that is the parent of the resource
url string The absolute URL of the Defaults resource
data object The JSON string that describes the default task links
Source:

Methods

fetch(callbackopt) → {Promise}

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

toJSON()

Provide a user-friendly representation
Source:
Returns:
Object

update(optsopt, callbackopt) → {Promise}

update a DefaultsInstance
Parameters:
Name Type Attributes Description
opts object <optional>
Options for request
Properties
Name Type Attributes Description
defaults object <optional>
A JSON string that describes the default task links.
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed DefaultsInstance
Type
Promise