post https://api.servetel.in/v1/timegroup
This API allows you to create a new Time Group.
Sample Request
curl --request POST \
--url https://api.servetel.in/v1/timegroup \
--header 'accept: application/json' \
--header 'content-type: application/json'
š Important!
Before we begin, note that the * sign denotes the mandatory variables in each table.
Request Variables (Body Params)
The following parameter is required to create a Time Group:
Variable Name | Description | Data Type |
---|---|---|
name | Name of the time group. | String |
from_time | Start time of the time group. | Array of Strings |
to_time | End time of the time group. | Array of Strings |
days | Days on which time group is applicable. | String |
dates | Dates on which time group is applicable. Min:1 & Max: 31. | Array of Strings |
months | Months on which time group is applicable. | Array of Strings |
Response Variables
The response returned is as following:
Variable Name | Description | Data Type |
---|---|---|
Success | The request success status, the possible values are: True (default) for success. False for failure. | Boolean |
Message | The message corresponding to the success status. For example, in 400 Response where the "success" variable pops as True, the message displayed is shown here. | String |