Perform activate or deactivate action on all credentials filtered by the provided tag.
POST/actions/:action/telephony_credentials
Perform activate or deactivate action on all credentials filtered by the provided tag. Activate action will change the status to active, making it possible to connect calls with the credential. Deactivate action will change the status to inactive, making it impossible to connect calls with the credential.
Request
Path Parameters
action stringrequired
Possible values: [activate
, deactivate
]
Identifies the action to be taken. Activate will change the status to active. Deactivate will change the status to inactive.
Query Parameters
filter[tag] stringrequired
Filter by tag, required by bulk operations.
Responses
200: Successful response for Bulk credential requests
- application/json
401: Unauthorized
404: Resource not found
422: Bad request
Request samples
curl -L -X POST 'https://api.telnyx.com/v2/actions/:action/telephony_credentials' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": {
"credentials": 0
}
}