Change a Hosting User's System Capacity
HTTP method and endpoint
PUT /api/v1/system/users/{user_id}/capacities
Request parameters
| Parameter | Importance | Type | Description |
| user_id | Required | Integer | User ID. |
| extension | Required | Integer | How many extensions for the user. |
| concurrentCall | Required | Integer | How many concurrent calls for the user. |
| recordingCapacity | Required | Integer | How many recording capacity for the user. |
| instance | Required | Integer | How many PBX instances for the user. |
| minExtension | Required | Integer | The minimum extensions for the user. |
Examples
Request example
PUT /api/v1/system/users/201/capacities HTTP/1.1 Host: ympapi.yeastarcloud.com Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbl9uYW1lIjoiY2VjaWxpYUB5ZWFzdGFyLmNvbSIsInNjb3BlIjpbInRydXN0Il0sImV4cCI6MTU0Njk0MTU4MywiYXV0aG9yaXRpZXMiOlsiUk9MRV9hZG1pbiJdLCJqdGkiOiIyYzRmMDk2Yy05MjNkLTQ4Y2ItODRjZS1hNTM3NWFmNmMyMDciLCJjbGllbnRfaWQiOiI5Nzg5OTNmMDk2YzQ0MTFmYTljYzgwZWUyZTYyZjFmMiJ9.E0zt_URf9ZbQEm05fJY_C5qIgXtr8Q0bY6PzdTCFe1Q Cache-Control: no-cache { "extension": 2, "minExtension": 2, "concurrentCall": 2, "recordingCapacity": 0, "instance": 2 }
Response example
HTTP/1.1 200 OK { "status": "Success" }