post https://api-smartflo.tatateleservices.com/v1/timegroup
This API allows you to create a new Time Group.
Sample Request
This API allows you to create a new Time Group.
curl --request POST \
--url https://api-smartflo.tatateleservices.com/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)
Variable Name | Description | Data Type |
---|---|---|
name | Name for the time group | string |
from_time | start time of time group | array of strings |
to_time | end time of time group | array of strings |
days | days on which time group is applicable | array of strings |
dates | Dates on which timegroup is applicable, min:1, max:31 | array of strings |
months | Months on which timegroup is applicable | array of strings |
Response Variables
After the execution of the API, you will get the following response:
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 |