Skip to main content
PUT
/
custom_storage_credentials
/
{connection_id}
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const customStorageCredential = await client.customStorageCredentials.update('connection_id', {
  backend: 'gcs',
  configuration: {},
});

console.log(customStorageCredential.connection_id);
{
  "data": {
    "backend": "gcs",
    "configuration": {
      "credentials": "OPAQUE_CREDENTIALS_TOKEN",
      "bucket": "example-bucket"
    }
  },
  "connection_id": "1234567890",
  "record_type": "custom_storage_credentials"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

connection_id
string
required

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

Body

application/json

Creates new credentials resource for the specified connection_id.

backend
enum<string>
required
Available options:
gcs,
s3,
azure
Example:

"gcs"

configuration
object
required
  • Google Cloud Storage Configuration Data
  • AWS S3 Storage Configuration Data
  • Azure Blob Storage Configuration Data

Response

A response containing a credentials resource.

data
object
required
connection_id
string
required

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

Example:

"1234567890"

record_type
enum<string>
required

Identifies record type.

Available options:
custom_storage_credentials