Create Schedule
POST
/api/v1/developer/access_policies/schedules
Authorizations
bearerAuth
Type
HTTP (bearer)
Request Body
application/json
JSON "name": "Business Hours", "week_schedule": { "sunday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "monday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "tuesday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "wednesday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "thursday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "friday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "saturday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ] }, "holiday_group_id": "550e8400-e29b-41d4-a716-446655440000", "holiday_schedule": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ]
{
}
Responses
Successful response
application/json
JSON "code": "string", "msg": "string", "data": { "id": "string", "name": "string", "is_default": true, "type": "string", "week_schedule": { "sunday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "monday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "tuesday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "wednesday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "thursday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "friday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "saturday": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ] }, "holiday_schedule": [ { "start_time": "00:00:00", "end_time": "23:59:59" } ], "holiday_group_id": "string", "holiday_group": { "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 } ] } }
{
}