Skip to main content

Update a stored credential

PUT 
/custom_storage_credentials/:connection_id

Updates a stored custom credentials configuration.

Request

Path Parameters

    connection_id stringrequired

    Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource.

Body

required

Creates new credentials resource for given connection_id.

    backend stringrequired

    Possible values: [gcs, s3, azure]

    configuration

    object

    required

    oneOf

Responses

200: A response with credentials resource.

default: Unexpected error.

Request samples


curl -L -X PUT 'https://api.telnyx.com/v2/custom_storage_credentials/:connection_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"backend": "gcs",
"configuration": {
"credentials": "OPAQUE_CREDENTIALS_TOKEN",
"bucket": "example-bucket"
}
}'

Response samples


{
"data": {
"backend": "gcs",
"configuration": {}
},
"record_type": "string"
}