Sub-accounts
Update a sub-account
Changed onUpdates the sub-account identified by id. Only the provided fields are changed.
put/v1/sub-organizations/{id}
Request
- Base URLhttps://api.wavix.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Example:123
The unique ID of the sub-account.
Request body
Example request
{
"name": "Updated Company Name",
"status": "enabled",
"default_destinations": {
"sms_endpoint": "https://examples.com/sms",
"dlr_endpoint": "https://examples.com/dlr"
}
}Response
Returns the updated sub-account.
Example response
{
"id": 123,
"created_at": "2023-06-15T10:30:00Z",
"name": "My sub-account",
"api_key": "abc123def456",
"master_organization": 456,
"status": "enabled",
"default_destinations": {
"sms_endpoint": "https://examples.com/sms",
"dlr_endpoint": "https://examples.com/dlr"
}
}Changes
- breaking
the
request property's maxLength was decreased to75
- breaking
- info
the request property
became optional
- info