# Calabrio

> Read people, teams and schedules in Calabrio ONE and add absences, absence requests and schedule notes.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/calabrio

## Actions

### Add full-day absence

Put a full-day absence on a person's schedule.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.
- Person (`person_id`, text, required): The person's ID, from List people in team.
- Absence (`absence_id`, text, required): The kind of absence. Use an absence ID from List absences.
- From (`start_date`, date, required): The first day, at most 31 days ago.
- To (`end_date`, date, required): The last day, at most 18 months ahead.
- Scenario (`scenario_id`, text): The schedule scenario. Leave empty for the default scenario, or use an ID from List scenarios.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Id": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
    "Message": "OK"
  }
}
```

### Add part-day absence

Put an absence of up to 36 hours on a person's schedule.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.
- Person (`person_id`, text, required): The person's ID, from List people in team.
- Absence (`absence_id`, text, required): The kind of absence. Use an absence ID from List absences.
- Starts (`start_time`, date and time, required): When it starts, at most 31 days ago. Calabrio reads it in UTC.
- Ends (`end_time`, date and time, required): When it ends, at most 12 months ahead. Calabrio reads it in UTC.
- Make it a full day when it covers one (`convert_to_full_day`, number): Whether Calabrio should turn it into a full-day absence when it can. One of: `0` (No), `1` (Yes).
- Scenario (`scenario_id`, text): The schedule scenario. Leave empty for the default scenario, or use an ID from List scenarios.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Id": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
    "Message": "OK"
  }
}
```

### Find people by employment number

Find people by their employment numbers.

**Inputs**

- Employment numbers (`employment_numbers`, list, required): The employment numbers to look for.
- On (`date`, date): The day to look at. Leave empty for today.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "BusinessUnitId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "ContractId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "DisplayName": "Ada Lovelace",
        "Email": "ada@example.com",
        "EmploymentNumber": "10042",
        "EmploymentStartDate": "2024-01-08",
        "FirstDayOfWeek": 1,
        "FirstName": "Ada",
        "Id": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
        "Identity": "ada@example.com",
        "Language": "en-US",
        "LastName": "Lovelace",
        "Note": "Part time",
        "PersonSkills": [
          {
            "Active": true,
            "Proficiency": 1.0,
            "SkillId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b"
          }
        ],
        "Roles": [
          {
            "BusinessUnitId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
            "RoleId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b"
          }
        ],
        "SiteId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "TeamId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "TerminationDate": "2027-01-31",
        "TimeZoneId": "Europe/Stockholm",
        "WorkflowControlSetId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b"
      }
    ]
  }
}
```

### Get absence request

Check whether an absence request was approved, denied or is still waiting.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.
- Request (`request_id`, text, required): The request's ID, from Request full-day absence or Request part-day absence.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "Id": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
        "IsAlreadyAbsent": false,
        "IsApproved": false,
        "IsAutoAproved": false,
        "IsAutoDenied": false,
        "IsCancelled": false,
        "IsDeleted": false,
        "IsDenied": false,
        "IsExpired": false,
        "IsNew": false,
        "IsPending": true,
        "IsWaitlisted": false,
        "Reason": "Not enough staff"
      }
    ]
  }
}
```

### Get person

Get one person's details.

**Inputs**

- Person (`person_id`, text, required): The person's ID, from List people in team.
- On (`date`, date): The day to look at. Leave empty for today.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "BusinessUnitId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "ContractId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "DisplayName": "Ada Lovelace",
        "Email": "ada@example.com",
        "EmploymentNumber": "10042",
        "EmploymentStartDate": "2024-01-08",
        "FirstDayOfWeek": 1,
        "FirstName": "Ada",
        "Id": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
        "Identity": "ada@example.com",
        "Language": "en-US",
        "LastName": "Lovelace",
        "Note": "Part time",
        "PersonSkills": [
          {
            "Active": true,
            "Proficiency": 1.0,
            "SkillId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b"
          }
        ],
        "Roles": [
          {
            "BusinessUnitId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
            "RoleId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b"
          }
        ],
        "SiteId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "TeamId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "TerminationDate": "2027-01-31",
        "TimeZoneId": "Europe/Stockholm",
        "WorkflowControlSetId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b"
      }
    ]
  }
}
```

### Get person's schedule

Get a person's schedule for a range of days.

**Inputs**

- Person (`person_id`, text, required): The person's ID, from List people in team.
- From (`start_date`, date, required): The first day.
- To (`end_date`, date, required): The last day.
- Scenario (`scenario_id`, text): The schedule scenario. Leave empty for the default scenario, or use an ID from List scenarios.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "Date": "2027-03-15",
        "DayOff": {
          "DayOffTemplateId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
          "Name": "Day off"
        },
        "PersonId": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
        "Shift": [
          {
            "AbsenceId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
            "ActivityId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
            "DisplayColorHex": "#80FF80",
            "Name": "Phone",
            "Period": {
              "EndTime": "2027-03-15T12:00:00",
              "StartTime": "2027-03-15T08:00:00"
            }
          }
        ],
        "ShiftCategory": {
          "Id": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
          "Name": "Early",
          "ShortName": "EA"
        }
      }
    ]
  }
}
```

### Get team's schedule

Get the schedules of everyone in a team for a range of days.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.
- Team (`team`, text, required): The team. Use a team ID from List teams.
- From (`start_date`, date, required): The first day.
- To (`end_date`, date, required): The last day.
- Scenario (`scenario_id`, text): The schedule scenario. Leave empty for the default scenario, or use an ID from List scenarios.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "Date": "2027-03-15",
        "DayOff": {
          "DayOffTemplateId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
          "Name": "Day off"
        },
        "PersonId": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
        "Shift": [
          {
            "AbsenceId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
            "ActivityId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
            "DisplayColorHex": "#80FF80",
            "Name": "Phone",
            "Period": {
              "EndTime": "2027-03-15T12:00:00",
              "StartTime": "2027-03-15T08:00:00"
            }
          }
        ],
        "ShiftCategory": {
          "Id": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
          "Name": "Early",
          "ShortName": "EA"
        }
      }
    ]
  }
}
```

### List absence balances

List a person's absence balances on a day.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.
- Person (`person_id`, text, required): The person's ID, from List people in team.
- On (`date`, date, required): The day to look at.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "AbsenceId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "Accrued": 25,
        "BalanceIn": 5,
        "BalanceOut": 27,
        "Extra": 0,
        "Period": {
          "EndDate": "2027-12-31",
          "StartDate": "2027-01-01"
        },
        "Remaining": 27,
        "TrackedBy": "Days",
        "Used": 3
      }
    ]
  }
}
```

### List absences

List the kinds of absence set up in a business unit.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.
- Include deleted (`include_deleted`, number): Whether to include deleted absences. One of: `0` (Active only), `1` (Include deleted).

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "Confidential": false,
        "DisplayColor": "#FF8080",
        "Id": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "InContractTime": true,
        "InPaidTime": true,
        "InWorkTime": false,
        "IsDeleted": false,
        "Name": "Holiday",
        "PayrollCode": "HOL",
        "Requestable": true,
        "ShortName": "HO",
        "TrackerType": "Days"
      }
    ]
  }
}
```

### List activities

List the activities agents can be scheduled for.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.
- Include deleted (`include_deleted`, number): Whether to include deleted activities. One of: `0` (Active only), `1` (Include deleted).

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "DisplayColor": "#80FF80",
        "Id": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "InContractTime": true,
        "InPaidTime": true,
        "InReadyTime": true,
        "InWorkTime": true,
        "IsDeleted": false,
        "Name": "Phone",
        "PayrollCode": "PH",
        "RequiresSkill": true
      }
    ]
  }
}
```

### List business units

List the business units your token can work in.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "Id": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "Name": "Customer Service"
      }
    ]
  }
}
```

### List people in team

List the people in a team on a day.

**Inputs**

- Team (`team`, text, required): The team. Use a team ID from List teams.
- On (`date`, date): The day to look at. Leave empty for today.
- Include optional columns (`optional_columns`, true/false): Turn on to add your custom person columns.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "BusinessUnitId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "ContractId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "DisplayName": "Ada Lovelace",
        "Email": "ada@example.com",
        "EmploymentNumber": "10042",
        "EmploymentStartDate": "2024-01-08",
        "FirstDayOfWeek": 1,
        "FirstName": "Ada",
        "Id": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
        "Identity": "ada@example.com",
        "Language": "en-US",
        "LastName": "Lovelace",
        "Note": "Part time",
        "PersonSkills": [
          {
            "Active": true,
            "Proficiency": 1.0,
            "SkillId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b"
          }
        ],
        "Roles": [
          {
            "BusinessUnitId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
            "RoleId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b"
          }
        ],
        "SiteId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "TeamId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "TerminationDate": "2027-01-31",
        "TimeZoneId": "Europe/Stockholm",
        "WorkflowControlSetId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b"
      }
    ]
  }
}
```

### List roles

List the roles of a business unit.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "Id": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "Name": "Agent"
      }
    ]
  }
}
```

### List scenarios

List the schedule scenarios of a business unit.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "DefaultScenario": true,
        "Description": "Default",
        "EnableReporting": true,
        "Id": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "Restricted": false
      }
    ]
  }
}
```

### List schedule changes

List the schedules that changed in a time range.

**Inputs**

- Changed since (`changes_from`, date and time, required): Changes made from this time. Calabrio reads it in UTC.
- Changed until (`changes_to`, date and time): Changes made up to this time. Leave empty for now. Calabrio reads it in UTC.
- Page (`page`, number, required): Which page to read, from 1. Use 0 to read everything at once.
- Days a page (`page_size`, number): How many days each page holds.
- Business unit (`business_unit_id`, text): Only this business unit. Pick one, or use an ID from List business units.
- Days from (`start_date`, date): Only schedules on or after this day.
- Days to (`end_date`, date): Only schedules on or before this day.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "ChangesUpTo": "2026-12-01T12:00:00",
        "Page": 1,
        "Schedules": [
          {
            "Date": "2027-03-15",
            "DayOff": {
              "DayOffTemplateId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
              "Name": "Day off"
            },
            "PersonId": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
            "Shift": [
              {
                "AbsenceId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
                "ActivityId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
                "DisplayColorHex": "#80FF80",
                "Name": "Phone",
                "Period": {
                  "EndTime": "2027-03-15T12:00:00",
                  "StartTime": "2027-03-15T08:00:00"
                }
              }
            ],
            "ShiftCategory": {
              "Id": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
              "Name": "Early",
              "ShortName": "EA"
            }
          }
        ],
        "TotalPages": 1,
        "TotalSchedules": 1
      }
    ]
  }
}
```

### List scheduled absences

List the absences on people's schedules for a range of days.

**Inputs**

- People (`person_ids`, list, required): The people's IDs, from List people in team. Calabrio suggests 50 to 100 at a time.
- From (`start_date`, date, required): The first day.
- To (`end_date`, date, required): The last day.
- Scenario (`scenario_id`, text): The schedule scenario. Leave empty for the default scenario, or use an ID from List scenarios.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "Date": "2027-03-15",
        "FullDayAbsence": {
          "AbsenceId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
          "Confidential": false,
          "Name": "Holiday"
        },
        "PersonId": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
        "Shift": [
          {
            "AbsenceId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
            "Name": "Doctor",
            "Period": {
              "EndTime": "2027-03-15T10:00:00",
              "StartTime": "2027-03-15T08:00:00"
            }
          }
        ]
      }
    ]
  }
}
```

### List sites

List the sites of a business unit.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "Id": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "Name": "London",
        "ShortName": "LDN",
        "TimeZoneId": "Europe/London"
      }
    ]
  }
}
```

### List skills

List the skills of a business unit.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "ActivityId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "Description": "English calls",
        "Id": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "Name": "Phone English",
        "ResolutionMinutes": 15,
        "TimeZoneId": "Europe/London"
      }
    ]
  }
}
```

### List teams

List the teams of a business unit, or of one site.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Message": "OK",
    "Result": [
      {
        "Id": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "Name": "London/Team A",
        "SiteId": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
        "SiteName": "London",
        "TeamName": "Team A"
      }
    ]
  }
}
```

### Remove full-day absence

Remove full-day absences from a person's schedule.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.
- Person (`person_id`, text, required): The person's ID, from List people in team.
- From (`start_date`, date, required): The first day.
- To (`end_date`, date, required): The last day.
- Scenario (`scenario_id`, text): The schedule scenario. Leave empty for the default scenario, or use an ID from List scenarios.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Id": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
    "Message": "OK"
  }
}
```

### Remove part-day absence

Remove part-day absences from a person's schedule in a time range.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.
- Person (`person_id`, text, required): The person's ID, from List people in team.
- From (`start_time`, date and time, required): The start of the range. Calabrio reads it in UTC.
- To (`end_time`, date and time, required): The end of the range. Calabrio reads it in UTC.
- Absences (`absence_ids`, list): Only these kinds of absence, from List absences. Leave empty for all of them.
- Scenario (`scenario_id`, text): The schedule scenario. Leave empty for the default scenario, or use an ID from List scenarios.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Id": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
    "Message": "OK"
  }
}
```

### Request full-day absence

Send a full-day absence request for a person, to be approved in Calabrio.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.
- Person (`person_id`, text, required): The person's ID, from List people in team.
- Absence (`absence_id`, text, required): The kind of absence. Use an absence ID from List absences.
- From (`start_date`, date, required): The first day.
- To (`end_date`, date, required): The last day.
- Subject (`subject`, text, required): The request's subject.
- Message (`message`, text, required): The request's message.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Id": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
    "Message": "OK"
  }
}
```

### Request part-day absence

Send an absence request for part of a day, to be approved in Calabrio.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.
- Person (`person_id`, text, required): The person's ID, from List people in team.
- Absence (`absence_id`, text, required): The kind of absence. Use an absence ID from List absences.
- Starts (`start_time`, date and time, required): When it starts. Calabrio reads it in UTC.
- Ends (`end_time`, date and time, required): When it ends. Calabrio reads it in UTC.
- Subject (`subject`, text, required): The request's subject.
- Message (`message`, text, required): The request's message.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Id": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
    "Message": "OK"
  }
}
```

### Set absence balance

Add or update a person's absence balance from a date.

**Inputs**

- Person (`person_id`, text, required): The person's ID, from List people in team.
- Absence (`absence_id`, text, required): The kind of absence. Use an absence ID from List absences.
- From (`date_from`, date, required): The day the balance starts.
- Balance brought in (`balance_in`, number): The balance brought in.
- Accrued (`accrued`, number): What is earned in the period.
- Extra (`extra`, number): Extra to give.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Id": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
    "Message": "OK"
  }
}
```

### Set schedule note

Put a note on a person's schedule for a day.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit to work in. Pick one, or use an ID from List business units.
- Person (`person_id`, text, required): The person's ID, from List people in team.
- Day (`date`, date, required): The day.
- Note (`note`, text, required): The note.
- Agent can see it (`is_public`, true/false, required): Turn on to show the note to the agent.
- Scenario (`scenario_id`, text): The schedule scenario. Leave empty for the default scenario, or use an ID from List scenarios.

**Outputs**

- `data` (object): The response from Calabrio.

**Example output**

```json
{
  "data": {
    "Errors": [
      {
        "Message": "The person was not found.",
        "ReasonCode": "NotFound",
        "ReasonSource": "PersonId"
      }
    ],
    "Id": "d9b8a7c4-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
    "Message": "OK"
  }
}
```
