v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Create a blockout time for an employee

This API helps you to create a blockout time for the specified employee.

You must specify the unique identifier of the employee as employee_id in the API request.

post/v1/employees/{employee_id}/blockouttimes

Path parameters

employee_idstring required

Mandatory Unique 32-character identifier of the employee.

Response

200

{"stackTrail":"paths:/v1/employees/{employee_id}/blockouttimes:post:responses:200:content:application/json:schema:properties:error","oasType":"schema","type":"unknown"}

Example response

{
  "block_out_times": [
    {
      "block_out_time_id": "9354d793-19b5-4aaa-9523-1095c8bebd49",
      "employee": {
        "id": "1afd493a-4aad-48a3-8f94-9fdea88691ac",
        "name": "Ajay Kumar Singh"
      },
      "block_out_time_type": {
        "id": 16,
        "name": "Lunch ",
        "duration": 60
      },
      "start_time": "2018-09-07T11:45:00",
      "end_time": "2018-09-07T12:45:00",
      "start_time_in_center": "2018-09-07T17:15:00",
      "end_time_in_center": "2018-09-07T18:15:00",
      "recurring_block_out_time": {
        "id": "8f89d3a1-c3d3-4772-b871-6238023a1f09",
        "time_period": "Daily",
        "interval": 1,
        "rec_start_date": "2018-09-07T00:00:00",
        "occurences": 3
      }
    }
  ]
}