get https://api.zenoti.com/v1/centers//rooms
This API helps you to retrieve all the rooms that are active in the center.
You must specify the unique identifier of the center as center_id in the API request.
You can also leverage the pagination feature by passing page and size query parameters if you have a large number of records to be displayed. By default, page is set as 1 and size is set as 10. size cannot be more than 100: which means that the maximum records per page cannot be more than 100.
Response Details
| Name | Type | Description |
|---|---|---|
| rooms | object | Object that contains all the rooms-related elements. |
| error | object | Object that contains error message and error code details. For more information, refer to the error Object table. |
error Object
| code | message |
|---|---|
| 401 | Authorization has been denied for this request. |
| 502 | invalid center_id. |
| 400 | The request is invalid. |
