Update Provider
Providers
Update Provider
Partially update a telephony provider configuration
PATCH
Update Provider
Update Provider Configuration
Partially update an existing telephony provider configuration. This is useful for rotating credentials such as theauth_token without deleting and recreating the entire configuration.
Prerequisites: Make sure you have your API Token and Org-Handle ready. See Authentication for details.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | integer | Yes | Unique identifier of the provider configuration |
You can get the provider configuration
id by hitting the Get All Providers API.Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | API Key format: Token <token> |
| Org-Handle | string | Yes | Organization domain handle |
| Content-Type | string | Yes | application/json |
Request Body
All fields are optional - include only the fields you wish to update.| Field | Type | Required | Description |
|---|---|---|---|
| auth_token | string | No | Updated Auth Token / Secret key |
| account_sid | string | No | Updated Account SID |
Response Fields
| Field | Type | Description |
|---|---|---|
| status_code | integer | HTTP status code |
| message | string | Response message |
| data | object | Updated provider config details |
Provider Config Object Fields
| Field | Type | Description |
|---|---|---|
| id | integer | Unique provider configuration identifier |
| provider | string | Provider slug/identifier |
| account_sid | string | Account SID for the provider |
| created_at | string | Configuration creation timestamp |
Common Error Codes
| Status Code | Description |
|---|---|
| 200 | Success - Configuration updated successfully |
| 400 | Bad Request - Invalid update parameters |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Invalid organization handle |
| 404 | Not Found - Provider configuration not found |
| 500 | Internal Server Error - Server-side error |
Code Examples
Best Practices
- Partial Updates: Only include fields you want to change - PATCH supports partial updates
- Credential Rotation: Regularly rotate
auth_tokenvalues for security without disrupting bridges - Security: Never expose
auth_tokenvalues in logs or responses - Verify Before Update: Use Get Provider by ID to confirm the configuration exists before patching
- Error Handling: Handle 404 and 400 errors to catch invalid IDs or credential formats
Authorizations
Format: Token
Headers
Organization domain handle
Example:
"unpod.tv"
Path Parameters
Example:
42
Body
application/json
Response
Provider updated