Skip to content

Create Holiday Group

POST
/api/v1/developer/access_policies/holiday_groups

Authorizations

bearerAuth
Type
HTTP (bearer)

Request Body

application/json
JSON
{
  
"name": "National Holidays",
  
"description": "Example description",
  
"holidays": [
  
  
{
  
  
  
"name": "string",
  
  
  
"description": "string",
  
  
  
"repeat": true,
  
  
  
"is_template": true,
  
  
  
"start_time": "string",
  
  
  
"end_time": "string"
  
  
}
  
]
}

Responses

Successful response

application/json
JSON
{
  
"code": "string",
  
"msg": "string",
  
"data": {
  
  
"id": "string",
  
  
"name": "string",
  
  
"is_default": true,
  
  
"description": "string",
  
  
"template_name": "string",
  
  
"holidays": [
  
  
  
{
  
  
  
  
"id": "string",
  
  
  
  
"name": "string",
  
  
  
  
"description": "string",
  
  
  
  
"repeat": true,
  
  
  
  
"start_time": "string",
  
  
  
  
"end_time": "string",
  
  
  
  
"is_template": true
  
  
  
}
  
  
]
  
}
}

Playground

Server
Authorization
Body

Samples

Powered by VitePress OpenAPI