Class: DocumentPermissionContext

Twilio.Preview.Sync.ServiceContext.DocumentContext.DocumentPermissionContext(version, serviceSid, documentSid, identity)

new DocumentPermissionContext(version, serviceSid, documentSid, identity)

Initialize the DocumentPermissionContext 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 Sync Version of the resource
serviceSid sid The service_sid
documentSid sid_like Sync Document SID or unique name.
identity string Identity of the user to whom the Sync Document Permission applies.
Source:

Methods

fetch(callbackopt) → {Promise}

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

remove(callbackopt) → {Promise}

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

toJSON()

Provide a user-friendly representation
Source:
Returns:
Object

update(opts, callbackopt) → {Promise}

update a DocumentPermissionInstance
Parameters:
Name Type Attributes Description
opts object Options for request
Properties
Name Type Description
read boolean Read access.
write boolean Write access.
manage boolean Manage access.
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed DocumentPermissionInstance
Type
Promise