# 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 permission 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

```json
{"type":"object","refName":"sync.v1.service.sync_list.sync_list_permission","modelName":"sync_v1_service_sync_list_sync_list_permission","properties":{"account_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^AC[0-9a-fA-F]{32}$","nullable":true,"description":"The SID of the [Account](/docs/iam/api/account) that created the Sync List Permission resource."},"service_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","nullable":true,"description":"The SID of the [Sync Service](/docs/sync/api/service) the resource is associated with."},"list_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^ES[0-9a-fA-F]{32}$","nullable":true,"description":"The SID of the Sync List to which the Permission applies."},"identity":{"type":"string","nullable":true,"description":"The application-defined string that uniquely identifies the resource's User within the Service to an FPA token.","x-twilio":{"pii":{"handling":"standard","deleteSla":30}}},"read":{"type":"boolean","nullable":true,"description":"Whether the identity can read the Sync List and its Items."},"write":{"type":"boolean","nullable":true,"description":"Whether the identity can create, update, and delete Items in the Sync List."},"manage":{"type":"boolean","nullable":true,"description":"Whether the identity can delete the Sync List."},"url":{"type":"string","format":"uri","nullable":true,"description":"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}`

### Path parameters

```json
[{"name":"ServiceSid","in":"path","description":"The SID of the [Sync Service](/docs/sync/api/service) with the Sync List Permission resource to fetch.","schema":{"type":"string"},"required":true},{"name":"ListSid","in":"path","description":"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`.","schema":{"type":"string"},"required":true},{"name":"Identity","in":"path","description":"The application-defined string that uniquely identifies the User's Sync List Permission resource to fetch.","schema":{"type":"string"},"x-twilio":{"pii":{"handling":"standard","deleteSla":30}},"required":true}]
```

Fetch a Sync List Permission resource

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function fetchSyncListPermission() {
  const syncListPermission = await client.sync.v1
    .services("ServiceSid")
    .syncLists("ListSid")
    .syncListPermissions("Identity")
    .fetch();

  console.log(syncListPermission.accountSid);
}

fetchSyncListPermission();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

sync_list_permission = (
    client.sync.v1.services("ServiceSid")
    .sync_lists("ListSid")
    .sync_list_permissions("Identity")
    .fetch()
)

print(sync_list_permission.account_sid)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Sync.V1.Service.SyncList;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var syncListPermission = await SyncListPermissionResource.FetchAsync(
            pathServiceSid: "ServiceSid", pathListSid: "ListSid", pathIdentity: "Identity");

        Console.WriteLine(syncListPermission.AccountSid);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.sync.v1.service.synclist.SyncListPermission;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        SyncListPermission syncListPermission = SyncListPermission.fetcher("ServiceSid", "ListSid", "Identity").fetch();

        System.out.println(syncListPermission.getAccountSid());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	resp, err := client.SyncV1.FetchSyncListPermission("ServiceSid",
		"ListSid",
		"Identity")
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		if resp.AccountSid != nil {
			fmt.Println(*resp.AccountSid)
		} else {
			fmt.Println(resp.AccountSid)
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$sync_list_permission = $twilio->sync->v1
    ->services("ServiceSid")
    ->syncLists("ListSid")
    ->syncListPermissions("Identity")
    ->fetch();

print $sync_list_permission->accountSid;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

sync_list_permission = @client
                       .sync
                       .v1
                       .services('ServiceSid')
                       .sync_lists('ListSid')
                       .sync_list_permissions('Identity')
                       .fetch

puts sync_list_permission.account_sid
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:sync:v1:services:lists:permissions:fetch \
   --service-sid ServiceSid \
   --list-sid ListSid \
   --identity Identity
```

```bash
curl -X GET "https://sync.twilio.com/v1/Services/ServiceSid/Lists/ListSid/Permissions/Identity" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "service_sid": "ServiceSid",
  "list_sid": "ListSid",
  "identity": "Identity",
  "read": true,
  "write": true,
  "manage": true,
  "url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Permissions/identity"
}
```

## Read multiple Sync List Permission resources

`GET https://sync.twilio.com/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions`

### Path parameters

```json
[{"name":"ServiceSid","in":"path","description":"The SID of the [Sync Service](/docs/sync/api/service) with the Sync List Permission resources to read.","schema":{"type":"string"},"required":true},{"name":"ListSid","in":"path","description":"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`.","schema":{"type":"string"},"required":true}]
```

### Query parameters

```json
[{"name":"PageSize","in":"query","description":"How many resources to return in each list page. The default is 50, and the maximum is 100.","schema":{"type":"integer","format":"int64","minimum":1,"maximum":100}},{"name":"Page","in":"query","description":"The page index. This value is simply for client state.","schema":{"type":"integer","minimum":0}},{"name":"PageToken","in":"query","description":"The page token. This is provided by the API.","schema":{"type":"string"}}]
```

Read multiple Sync List Permission resources

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function listSyncListPermission() {
  const syncListPermissions = await client.sync.v1
    .services("ServiceSid")
    .syncLists("ListSid")
    .syncListPermissions.list({ limit: 20 });

  syncListPermissions.forEach((s) => console.log(s.accountSid));
}

listSyncListPermission();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

sync_list_permissions = (
    client.sync.v1.services("ServiceSid")
    .sync_lists("ListSid")
    .sync_list_permissions.list(limit=20)
)

for record in sync_list_permissions:
    print(record.account_sid)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Sync.V1.Service.SyncList;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var syncListPermissions = await SyncListPermissionResource.ReadAsync(
            pathServiceSid: "ServiceSid", pathListSid: "ListSid", limit: 20);

        foreach (var record in syncListPermissions) {
            Console.WriteLine(record.AccountSid);
        }
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.sync.v1.service.synclist.SyncListPermission;
import com.twilio.base.ResourceSet;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        ResourceSet<SyncListPermission> syncListPermissions =
            SyncListPermission.reader("ServiceSid", "ListSid").limit(20).read();

        for (SyncListPermission record : syncListPermissions) {
            System.out.println(record.getAccountSid());
        }
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	sync "github.com/twilio/twilio-go/rest/sync/v1"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	params := &sync.ListSyncListPermissionParams{}
	params.SetLimit(20)

	resp, err := client.SyncV1.ListSyncListPermission("ServiceSid",
		"ListSid",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		for record := range resp {
			if resp[record].AccountSid != nil {
				fmt.Println(*resp[record].AccountSid)
			} else {
				fmt.Println(resp[record].AccountSid)
			}
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$syncListPermissions = $twilio->sync->v1
    ->services("ServiceSid")
    ->syncLists("ListSid")
    ->syncListPermissions->read(20);

foreach ($syncListPermissions as $record) {
    print $record->accountSid;
}
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

sync_list_permissions = @client
                        .sync
                        .v1
                        .services('ServiceSid')
                        .sync_lists('ListSid')
                        .sync_list_permissions
                        .list(limit: 20)

sync_list_permissions.each do |record|
   puts record.account_sid
end
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:sync:v1:services:lists:permissions:list \
   --service-sid ServiceSid \
   --list-sid ListSid
```

```bash
curl -X GET "https://sync.twilio.com/v1/Services/ServiceSid/Lists/ListSid/Permissions?PageSize=20" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "permissions": [],
  "meta": {
    "first_page_url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/sidOrUniqueName/Permissions?PageSize=50&Page=0",
    "key": "permissions",
    "next_page_url": null,
    "page": 0,
    "page_size": 50,
    "previous_page_url": null,
    "url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/sidOrUniqueName/Permissions?PageSize=50&Page=0"
  }
}
```

## 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.

> \[!WARNING]
>
> 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.

### Path parameters

```json
[{"name":"ServiceSid","in":"path","description":"The SID of the [Sync Service](/docs/sync/api/service) with the Sync List Permission resource to update.","schema":{"type":"string"},"required":true},{"name":"ListSid","in":"path","description":"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`.","schema":{"type":"string"},"required":true},{"name":"Identity","in":"path","description":"The application-defined string that uniquely identifies the User's Sync List Permission resource to update.","schema":{"type":"string"},"x-twilio":{"pii":{"handling":"standard","deleteSla":30}},"required":true}]
```

### Request body parameters

```json
{"schema":{"type":"object","title":"UpdateSyncListPermissionRequest","required":["Read","Write","Manage"],"properties":{"Read":{"type":"boolean","description":"Whether the identity can read the Sync List and its Items. Default value is `false`."},"Write":{"type":"boolean","description":"Whether the identity can create, update, and delete Items in the Sync List. Default value is `false`."},"Manage":{"type":"boolean","description":"Whether the identity can delete the Sync List. Default value is `false`."}}},"examples":{"update":{"value":{"lang":"json","value":"{\n  \"Read\": \"true\",\n  \"Write\": \"true\",\n  \"Manage\": \"true\"\n}","meta":"","code":"{\n  \"Read\": \"true\",\n  \"Write\": \"true\",\n  \"Manage\": \"true\"\n}","tokens":[["{","#C9D1D9"],"\n  ",["\"Read\"","#7EE787"],[":","#C9D1D9"]," ",["\"true\"","#A5D6FF"],[",","#C9D1D9"],"\n  ",["\"Write\"","#7EE787"],[":","#C9D1D9"]," ",["\"true\"","#A5D6FF"],[",","#C9D1D9"],"\n  ",["\"Manage\"","#7EE787"],[":","#C9D1D9"]," ",["\"true\"","#A5D6FF"],"\n",["}","#C9D1D9"]],"annotations":[],"themeName":"github-dark","style":{"color":"#c9d1d9","background":"#0d1117"}}}},"encodingType":"application/x-www-form-urlencoded","conditionalParameterMap":{}}
```

Update a Sync List Permission resource

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function updateSyncListPermission() {
  const syncListPermission = await client.sync.v1
    .services("ServiceSid")
    .syncLists("ListSid")
    .syncListPermissions("Identity")
    .update({
      manage: false,
      read: false,
      write: false,
    });

  console.log(syncListPermission.accountSid);
}

updateSyncListPermission();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

sync_list_permission = (
    client.sync.v1.services("ServiceSid")
    .sync_lists("ListSid")
    .sync_list_permissions("Identity")
    .update(read=False, write=False, manage=False)
)

print(sync_list_permission.account_sid)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Sync.V1.Service.SyncList;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var syncListPermission = await SyncListPermissionResource.UpdateAsync(
            read: false,
            write: false,
            manage: false,
            pathServiceSid: "ServiceSid",
            pathListSid: "ListSid",
            pathIdentity: "Identity");

        Console.WriteLine(syncListPermission.AccountSid);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.sync.v1.service.synclist.SyncListPermission;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        SyncListPermission syncListPermission =
            SyncListPermission.updater("ServiceSid", "ListSid", "Identity", false, false, false).update();

        System.out.println(syncListPermission.getAccountSid());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	sync "github.com/twilio/twilio-go/rest/sync/v1"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	params := &sync.UpdateSyncListPermissionParams{}
	params.SetRead(false)
	params.SetWrite(false)
	params.SetManage(false)

	resp, err := client.SyncV1.UpdateSyncListPermission("ServiceSid",
		"ListSid",
		"Identity",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		if resp.AccountSid != nil {
			fmt.Println(*resp.AccountSid)
		} else {
			fmt.Println(resp.AccountSid)
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$sync_list_permission = $twilio->sync->v1
    ->services("ServiceSid")
    ->syncLists("ListSid")
    ->syncListPermissions("Identity")
    ->update(
        false, // Read
        false, // Write
        false // Manage
    );

print $sync_list_permission->accountSid;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

sync_list_permission = @client
                       .sync
                       .v1
                       .services('ServiceSid')
                       .sync_lists('ListSid')
                       .sync_list_permissions('Identity')
                       .update(
                         read: false,
                         write: false,
                         manage: false
                       )

puts sync_list_permission.account_sid
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:sync:v1:services:lists:permissions:update \
   --service-sid ServiceSid \
   --list-sid ListSid \
   --identity Identity \
   --read \
   --write \
   --manage
```

```bash
curl -X POST "https://sync.twilio.com/v1/Services/ServiceSid/Lists/ListSid/Permissions/Identity" \
--data-urlencode "Read=false" \
--data-urlencode "Write=false" \
--data-urlencode "Manage=false" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "service_sid": "ServiceSid",
  "list_sid": "ListSid",
  "identity": "Identity",
  "read": false,
  "write": false,
  "manage": false,
  "url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Permissions/identity"
}
```

## Delete a Sync List Permission resource

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

### Path parameters

```json
[{"name":"ServiceSid","in":"path","description":"The SID of the [Sync Service](/docs/sync/api/service) with the Sync List Permission resource to delete.","schema":{"type":"string"},"required":true},{"name":"ListSid","in":"path","description":"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`.","schema":{"type":"string"},"required":true},{"name":"Identity","in":"path","description":"The application-defined string that uniquely identifies the User's Sync List Permission resource to delete.","schema":{"type":"string"},"x-twilio":{"pii":{"handling":"standard","deleteSla":30}},"required":true}]
```

Delete a Sync List Permission resource

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function deleteSyncListPermission() {
  await client.sync.v1
    .services("ServiceSid")
    .syncLists("ListSid")
    .syncListPermissions("Identity")
    .remove();
}

deleteSyncListPermission();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

client.sync.v1.services("ServiceSid").sync_lists(
    "ListSid"
).sync_list_permissions("Identity").delete()
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Sync.V1.Service.SyncList;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        await SyncListPermissionResource.DeleteAsync(
            pathServiceSid: "ServiceSid", pathListSid: "ListSid", pathIdentity: "Identity");
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.sync.v1.service.synclist.SyncListPermission;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        SyncListPermission.deleter("ServiceSid", "ListSid", "Identity").delete();
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	err := client.SyncV1.DeleteSyncListPermission("ServiceSid",
		"ListSid",
		"Identity")
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$twilio->sync->v1
    ->services("ServiceSid")
    ->syncLists("ListSid")
    ->syncListPermissions("Identity")
    ->delete();
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

@client
  .sync
  .v1
  .services('ServiceSid')
  .sync_lists('ListSid')
  .sync_list_permissions('Identity')
  .delete
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:sync:v1:services:lists:permissions:remove \
   --service-sid ServiceSid \
   --list-sid ListSid \
   --identity Identity
```

```bash
curl -X DELETE "https://sync.twilio.com/v1/Services/ServiceSid/Lists/ListSid/Permissions/Identity" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```
