---
title: "Create a Time Group"
method: POST
path: "/v1/timegroup"
---

# Create a Time Group

`POST /v1/timegroup`

## Request

- Base URL: `https://api.servetel.in`
- URL: `https://api.servetel.in/v1/timegroup`
- Auth: none required

This API allows you to create a new Time Group.

## Headers

- `Authorization` string, required

## Request body

- object
  - `name` string: Name for the timegroup
  - `from_time` string[]: Start time of timegroup
  - `to_time` string[]: End time of timegroup
  - `days` 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun': Days on which timegroup is applicable.
  - `dates` string[]: Dates on which timegroup is applicable, min:1, max:31
  - `months` string[]: Months on which timegroup is applicable.

## Response `200`

200

- object

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/servetel/apis/servetel-base-api-config.md) - [All operations](https://skmtc.dev/servetel/apis/servetel-base-api-config/llms.txt) - [OpenAPI document](https://skmtc.dev/servetel/apis/servetel-base-api-config/revisions/d1cb31356d25?raw)
