# Kallidus Sapling

> Read and update people in Kallidus Sapling, add pending hires, and read profile fields and onboarding tasks.

App · 12 actions. Web page: https://docs.lodol.com/docs/integrations/sapling

## Actions

### Create pending hire

Add a new hire to Sapling's pending hires, ready for someone to start their onboarding. Sapling flags a hire whose personal email it already has.

**Inputs**

- Personal email (`personal_email`, text, required): The new hire's personal email, where Sapling sends their invitation.
- First name (`first_name`, text, required): The new hire's first name.
- Last name (`last_name`, text, required): The new hire's last name.
- Start date (`start_date`, date, required): The new hire's expected first day.
- Preferred name (`preferred_name`, text): The name the new hire goes by. Leave empty to use the first name.
- Job title (`job_title`, text): The new hire's job title.
- Department (`department`, text): The new hire's department, as it is named in Sapling.
- Location (`location`, text): The new hire's location, as it is named in Sapling.
- Employment status (`employment_status`, text): The employment status, as it is named in Sapling, such as `Full Time`.
- Status (`status`, text): Whether the new hire is active. One of: `active`, `inactive`.

**Outputs**

- `data` (object): The response from Kallidus Sapling.

**Example output**

```json
{
  "data": {
    "customer": {
      "companyID": 1,
      "domain": "example"
    },
    "guid": "example",
    "message": "example",
    "status": 1,
    "userGUID": "example",
    "userID": 1
  }
}
```

### Create user

Add a person to Sapling with their work email, name and start date, and any other profile fields.

**Inputs**

- Company email (`company_email`, text, required): The person's work email.
- First name (`first_name`, text, required): The person's first name.
- Last name (`last_name`, text, required): The person's last name.
- Start date (`start_date`, date, required): The person's first day.
- Preferred name (`preferred_name`, text): The name the person goes by.
- Job title (`job_title`, text): The person's job title.
- Department (`department`, text): The person's department, as it is named in Sapling.
- Location (`location`, text): The person's location, as it is named in Sapling.
- Manager (`manager`, text): The person's manager.
- Personal email (`personal_email`, text): The person's personal email.
- Employment status (`employment_status`, text): The employment status, as it is named in Sapling, such as `Full Time`.
- Status (`status`, text): Whether the person is active in Sapling. One of: `active`, `inactive`.
- Other fields (`other_fields`, object): Any other profile fields to set, each named by its field ID from the List fields step (such as `PFID16283462802483` or `t_shirt_size`) with its value.

**Outputs**

- `data` (object): The response from Kallidus Sapling.

**Example output**

```json
{
  "data": {
    "message": "example",
    "status": 1
  }
}
```

### Delete task

Delete a task.

**Inputs**

- Task (`task_id`, number, required): The task, as the number Sapling gives it. At least 1.

**Outputs**

- `data` (object): The response from Kallidus Sapling.

**Example output**

```json
{
  "data": {
    "deleted": true,
    "task_id": 1
  }
}
```

### Get field for every user

Get one profile field's value for every person, such as everyone's T-shirt size.

**Inputs**

- Field (`field_id`, text, required): The profile field.
- Page (`page`, number): Which page of people to read: 1 is the first. Leave empty for the first page. At least 1.
- Results per page (`limit`, number): How many people to read per page. Leave empty for 50. From 1 to 1000.

**Outputs**

- `data` (object): The response from Kallidus Sapling.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "total_pages": 1,
    "total_users": 1,
    "users": [
      {
        "guid": "example",
        "id": "example"
      }
    ]
  }
}
```

### Get pending hire

Get one pending hire.

**Inputs**

- Pending hire (`pending_hire_id`, text, required): The pending hire.

**Outputs**

- `data` (object): The response from Kallidus Sapling.

**Example output**

```json
{
  "data": {
    "customer": {
      "companyID": 1,
      "domain": "example"
    },
    "pending_hire": {
      "department": "example",
      "employmentStatus": "example",
      "firstName": "example",
      "jobTitle": "example",
      "lastName": "example",
      "location": "example",
      "manager": "example",
      "pendingHireID": "example",
      "personalEmail": "example",
      "phoneNumber": "example",
      "preferredName": "example",
      "source": "example",
      "startDate": "example",
      "status": "example",
      "userGUID": "example",
      "userID": 1
    },
    "status": 1
  }
}
```

### Get user

Get one person's profile, with the current value of every field the API can share.

**Inputs**

- User (`user_guid`, text, required): The user, as the GUID Sapling gives each person.

**Outputs**

- `data` (object): The response from Kallidus Sapling.

**Example output**

```json
{
  "data": {
    "company_email": "example",
    "department": "example",
    "employment_status": "example",
    "first_name": "example",
    "guid": "example",
    "home_address": {
      "city": "example",
      "country": "example",
      "line1": "example",
      "line2": "example",
      "state": "example",
      "zip": "example"
    },
    "job_title": "example",
    "last_day_worked": "example",
    "last_name": "example",
    "location": "example",
    "manager": "example",
    "personal_email": "example",
    "preferred_name": "example",
    "start_date": "example",
    "state": "example",
    "termination_date": "example"
  }
}
```

### List fields

List the profile fields the API can read and write, with each one's ID, name, section, type and choices.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Kallidus Sapling.

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "name": "example",
      "options": "example",
      "section": "example",
      "sub_fields": [
        {
          "id": "example",
          "name": "example",
          "type": "example"
        }
      ],
      "type": "example"
    }
  ]
}
```

### List pending hires

List new hires waiting in Sapling for their onboarding to start.

**Inputs**

- Page (`page`, number): Which page of pending hires to read: 1 is the first. Leave empty for the first page. At least 1.
- Results per page (`limit`, number): How many pending hires to read per page. Leave empty for 50. From 1 to 1000.

**Outputs**

- `data` (object): The response from Kallidus Sapling.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "customer": {
      "companyID": 1,
      "domain": "example"
    },
    "pending_hires": [
      {
        "department": "example",
        "employmentStatus": "example",
        "firstName": "example",
        "jobTitle": "example",
        "lastName": "example",
        "location": "example",
        "manager": "example",
        "pendingHireID": "example",
        "personalEmail": "example",
        "phoneNumber": "example",
        "preferredName": "example",
        "source": "example",
        "startDate": "example",
        "status": "example",
        "userGUID": "example",
        "userID": 1
      }
    ],
    "total_pages": 1,
    "total_pending_hires": 1
  }
}
```

### List tasks

List onboarding and offboarding tasks, optionally only those owned by one person.

**Inputs**

- Owner email (`owner_email`, text): Only list tasks owned by the person with this email.
- Page (`page`, number): Which page of tasks to read: 1 is the first. Leave empty for the first page. At least 1.
- Results per page (`limit`, number): How many tasks to read per page. Leave empty for 50. From 1 to 1000.

**Outputs**

- `data` (object): The response from Kallidus Sapling.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "tasks": [
      {
        "created_at": "example",
        "description": "example",
        "due_date": "example",
        "name": "example",
        "owner_email": "example",
        "owner_guid": "example",
        "owner_name": "example",
        "receiver_email": "example",
        "receiver_guid": "example",
        "receiver_name": "example",
        "state": "example",
        "task_id": 1,
        "updated_at": "example",
        "workflow_id": 1,
        "workflow_name": "example",
        "workspace_name": "example"
      }
    ],
    "total_pages": 1,
    "total_tasks": 1
  }
}
```

### List users

List people in Sapling, optionally by status, department, location, manager, employment status or start date.

**Inputs**

- Status (`status`, text): Only list active or inactive people. One of: `active`, `inactive`.
- Department (`department`, text): Only list people in this department.
- Location (`location`, text): Only list people at this location.
- Manager (`manager`, text): Only list people this person manages.
- Employment status (`employment_status`, text): Only list people with this employment status, such as `Full Time`.
- Started on or after (`started_since`, date): Only list people who started on or after this day.
- Started on or before (`started_until`, date): Only list people who started on or before this day.
- Page (`page`, number): Which page of people to read: 1 is the first. Leave empty for the first page. At least 1.
- Results per page (`limit`, number): How many people to read per page. Leave empty for 50. From 1 to 1000.

**Outputs**

- `data` (object): The response from Kallidus Sapling.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "total_pages": 1,
    "total_users": 1,
    "users": [
      {
        "company_email": "example",
        "department": "example",
        "employment_status": "example",
        "first_name": "example",
        "guid": "example",
        "home_address": {
          "city": "example",
          "country": "example",
          "line1": "example",
          "line2": "example",
          "state": "example",
          "zip": "example"
        },
        "job_title": "example",
        "last_day_worked": "example",
        "last_name": "example",
        "location": "example",
        "manager": "example",
        "personal_email": "example",
        "preferred_name": "example",
        "start_date": "example",
        "state": "example",
        "termination_date": "example"
      }
    ]
  }
}
```

### Update pending hire

Change a pending hire's details before their onboarding starts. Fields left empty stay as they are.

**Inputs**

- Pending hire (`pending_hire_id`, text, required): The pending hire.
- Personal email (`personal_email`, text): The new hire's personal email, where Sapling sends their invitation.
- First name (`first_name`, text): The new hire's first name.
- Last name (`last_name`, text): The new hire's last name.
- Start date (`start_date`, date): The new hire's expected first day.
- Preferred name (`preferred_name`, text): The name the new hire goes by. Leave empty to use the first name.
- Job title (`job_title`, text): The new hire's job title.
- Department (`department`, text): The new hire's department, as it is named in Sapling.
- Location (`location`, text): The new hire's location, as it is named in Sapling.
- Employment status (`employment_status`, text): The employment status, as it is named in Sapling, such as `Full Time`.
- Status (`status`, text): Whether the new hire is active. One of: `active`, `inactive`.

**Outputs**

- `data` (object): The response from Kallidus Sapling.

**Example output**

```json
{
  "data": {
    "customer": {
      "companyID": 1,
      "domain": "example"
    },
    "guid": "example",
    "message": "example",
    "status": 1,
    "userGUID": "example",
    "userID": 1
  }
}
```

### Update user

Change fields on a person's profile. Fields left empty stay as they are.

**Inputs**

- User (`user_guid`, text, required): The user, as the GUID Sapling gives each person.
- Company email (`company_email`, text): The person's work email.
- First name (`first_name`, text): The person's first name.
- Last name (`last_name`, text): The person's last name.
- Start date (`start_date`, date): The person's first day.
- Preferred name (`preferred_name`, text): The name the person goes by.
- Job title (`job_title`, text): The person's job title.
- Department (`department`, text): The person's department, as it is named in Sapling.
- Location (`location`, text): The person's location, as it is named in Sapling.
- Manager (`manager`, text): The person's manager.
- Personal email (`personal_email`, text): The person's personal email.
- Employment status (`employment_status`, text): The employment status, as it is named in Sapling, such as `Full Time`.
- Status (`status`, text): Whether the person is active in Sapling. One of: `active`, `inactive`.
- Other fields (`other_fields`, object): Any other profile fields to set, each named by its field ID from the List fields step (such as `PFID16283462802483` or `t_shirt_size`) with its value.

**Outputs**

- `data` (object): The response from Kallidus Sapling.

**Example output**

```json
{
  "data": {
    "message": "example",
    "status": 1
  }
}
```
