Resize PBX Capacity

HTTP method and endpoint

PUT /api/v1/pbx/instances/{instance_id}/capacities

Request parameters

Parameter Importance Type Description Restriction
instance_id Required Integer PBX ID. Only numbers are allowed.
extension Required Integer Set the maximum number of extensions. Only numbers are allowed.
concurrentCall Required Integer Set the maximum number of concurrent calls. Only numbers are allowed.
recordingCapacity Required Integer
  • Set the maximum recording time.
  • Time Unit: minute.

The recordingCapacity value should be larger than 500.

Examples

Request example

PUT /api/v1/pbx/instances/951/capacities HTTP/1.1
Host: ympapi.yeastarcloud.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbl9uYW1lIjoiY2VjaWxpYUB5ZWFzdGFyLmNvbSIsInNjb3BlIjpbInRydXN0Il0sImV4cCI6MTU0NzAxNzk3MywiYXV0aG9yaXRpZXMiOlsiUk9MRV9hZG1pbiJdLCJqdGkiOiI5NWU5OTBiNS01ZTRjLTQyYjItYTgxZS1lMGU3NWJkNjFhNDkiLCJjbGllbnRfaWQiOiI5Nzg5OTNmMDk2YzQ0MTFmYTljYzgwZWUyZTYyZjFmMiJ9.r9D4eX4tiEla3EodK0Oo0aODDzodhFid5FAxukTd7IA
Content-Type: application/json
Cache-Control: no-cache
{
	"extension": 11,
	"concurrentCall": 11,
	"recordingCapacity": 10000
}

Response example

HTTP/1.1 200 OK
{
    "status": "Success"
}