get https://api.servetel.in/v1/timegroups
This API allows you to fetch details of all Time Groups.
Sample Request
curl --request GET \
--url https://api.servetel.in/v1/timegroups \
--header 'accept: application/json'
š Important!
Before we begin, note that the * sign denotes the mandatory variables in each table.
Sample Response
[
{
"id": 36093,
"name": "XYZTIME",
"conditions": "[\"2:00-16:00,sun|mon,1|2|3,jan\",\"7:00-17:00,mon|tue,4|5|6,feb\"]",
"added_by": 10959
},....
]
Response Variables
The response returned is as following:
Variable Name | Description | Data Type |
---|---|---|
id | Unique ID of the time group. | String |
name | Name of the time group. | String |
conditions | Set of all the time conditions applicable in the time group. | String |
added_by | Unique ID of the user, who added the time group. | String |