Enables a managed account
POST/managed_accounts/:id/actions/enable
Enables a managed account and its sub-users to use Telnyx services.
Request
Path Parameters
id stringrequired
Managed Account User ID
- application/json
Body
Additional parameters for what to do when enabling the managed account
reenable_all_connections boolean
When true, all connections owned by this managed account will automatically be re-enabled. Note: Any connections that do not pass validations will not be re-enabled.
Responses
200: Successful response with information about a single managed account.
- application/json
401: Unauthenticated response. Happens when the current user cannot be authenticated.
404: Resource not found
422: Unprocessable entity. Check the 'detail' field in response for details.
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/managed_accounts/:id/actions/enable' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"reenable_all_connections": true
}'
Response samples
{
"data": {
"record_type": "managed_account",
"id": "f65ceda4-6522-4ad6-aede-98de83385123",
"email": "user@example.com",
"api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
"api_user": "managed_account@example.com",
"api_token": "x6oexQNHTs-fZ7-QsDMOeg",
"organization_name": "Example Company LLC",
"manager_account_id": "f65ceda4-6522-4ad6-aede-98de83385123",
"balance": {
"record_type": "balance",
"balance": "300.00",
"credit_limit": "100.00",
"available_credit": "400.00",
"currency": "USD"
},
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"managed_account_allow_custom_pricing": true,
"rollup_billing": false
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}