Menu

Expand
Rate this page:

Sync List Permission Resource

The Sync List Permission resource represents the permissions that apply to any SDKs authenticated with a matching Identity specified in the Auth Token.

Permissions bind an identity to an object with flags that specify the permssion to read, write, and manage the object. Permissions do not have a SID or a unique path; instead, they are identified by the Service, Object, and Token Identity specified in the URL.

Permissions can be updated, fetched, and read. Deleting a Sync List Permission resource is the same as setting all permissions to false.

Sync List Permission properties

Resource Properties in REST API format
account_sid
sid<AC> Not PII

The SID of the Account that created the Sync List Permission resource.

service_sid
sid<IS> Not PII

The SID of the Sync Service the resource is associated with.

list_sid
sid<ES> Not PII

The SID of the Sync List to which the Permission applies.

identity

The application-defined string that uniquely identifies the resource's User within the Service to an FPA token.

read
boolean Not PII

Whether the identity can read the Sync List and its Items.

write
boolean Not PII

Whether the identity can create, update, and delete Items in the Sync List.

manage
boolean Not PII

Whether the identity can delete the Sync List.

url
url Not PII

The absolute URL of the Sync List Permission resource.

Fetch a Sync List Permission resource

get
https://sync.twilio.com/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}
Parameters
Parameters in REST API format
service_sid
Path
get sid_like<IS> Not PII

The SID of the Sync Service with the Sync List Permission resource to fetch.

list_sid
Path
get sid_like<ES> Not PII

The SID of the Sync List with the Sync List Permission resource to fetch. Can be the Sync List resource's sid or its unique_name.

identity
Path
get string PII MTL: 30 DAYS

The application-defined string that uniquely identifies the User's Sync List Permission resource to fetch.

Example 1
Loading Code Sample...
        
        

        Fetch a Sync List Permission resource

        Read multiple Sync List Permission resources

        get
        https://sync.twilio.com/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions
        Parameters
        Parameters in REST API format
        service_sid
        Path
        get sid_like<IS> Not PII

        The SID of the Sync Service with the Sync List Permission resources to read.

        list_sid
        Path
        get sid_like<ES> Not PII

        The SID of the Sync List with the Sync List Permission resources to read. Can be the Sync List resource's sid or its unique_name.

        Example 1
        Loading Code Sample...
              
              

              Read multiple Sync List Permission resources

              Update a Sync List Permission resource

              post
              https://sync.twilio.com/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}

              Updates the permissions of the document for the Identity specified in the URL.

              Permissions only take effect if the ACLEnabled flag is set on your Service instance.

              Your servers are always in "God Mode", meaning they have full access to all your account's Sync resources regardless of the value of the Service's ACLEnabled flag or how the Permissions are configured.

              Parameters
              Parameters in REST API format
              service_sid
              Path
              post sid_like<IS> Not PII

              The SID of the Sync Service with the Sync List Permission resource to update.

              list_sid
              Path
              post sid_like<ES> Not PII

              The SID of the Sync List with the Sync List Permission resource to update. Can be the Sync List resource's sid or its unique_name.

              identity
              Path
              post string PII MTL: 30 DAYS

              The application-defined string that uniquely identifies the User's Sync List Permission resource to update.

              read
              Required
              post boolean Not PII

              Whether the identity can read the Sync List and its Items. Default value is false.

              write
              Required
              post boolean Not PII

              Whether the identity can create, update, and delete Items in the Sync List. Default value is false.

              manage
              Required
              post boolean Not PII

              Whether the identity can delete the Sync List. Default value is false.

              Example 1
              Loading Code Sample...
                    
                    

                    Update a Sync List Permission resource

                    Delete a Sync List Permission resource

                    delete
                    https://sync.twilio.com/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}
                    Parameters
                    Parameters in REST API format
                    service_sid
                    Path
                    delete sid_like<IS> Not PII

                    The SID of the Sync Service with the Sync List Permission resource to delete.

                    list_sid
                    Path
                    delete sid_like<ES> Not PII

                    The SID of the Sync List with the Sync List Permission resource to delete. Can be the Sync List resource's sid or its unique_name.

                    identity
                    Path
                    delete string PII MTL: 30 DAYS

                    The application-defined string that uniquely identifies the User's Sync List Permission resource to delete.

                    Example 1
                    Loading Code Sample...
                          
                          

                          Delete a Sync List Permission resource

                          Rate this page:

                          Need some help?

                          We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

                          Loading Code Sample...
                                
                                
                                

                                Thank you for your feedback!

                                Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

                                Sending your feedback...
                                🎉 Thank you for your feedback!
                                Something went wrong. Please try again.

                                Thanks for your feedback!

                                thanks-feedback-gif