Skip to content

Bulk update credential lists for a trunk

Request

Update the list of credential list entries for a trunk.

Security
Basic or OAuth2.0
Path
projectIdstringrequired

The projectId is a required parameter you must include when making any API calls. You can find your project ID on your Build dashboard.

Example:3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47
trunkIdstringrequired

The ID of the trunk that you want to work with

Bodyapplication/json
Array [
string

The ID of the credential list entry.

]
curl -i -X PUT \
  -u '<username>:<password>' \
  'https://elastic-trunking.api.sinch.com/v1/projects/3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47/trunks/{trunkId}/credentialLists' \
  -H 'Content-Type: application/json' \
  -d '[
    "01GNZ9MXEZ4K6S8GB7RW063VAN",
    "01GNZ9MXEZ4K6S8GB7RW063VAN"
  ]'

Responses

The list of credential list entries

Bodyapplication/json
credentialListIdsArray of strings

Array of credential list IDs

Response
{ "credentialListIds": [ "01GNZ9MXEZ4K6S8GB7RW063VAN", "01GNZ9MXEZ4K6S8GB7RW063VAN" ] }
We'd love to hear from you!
Rate this content: