# eloomi

> Manage eloomi users, departments, teams, courses and course assignments.

App · 28 actions. Web page: https://docs.lodol.com/docs/integrations/eloomi

## Actions

### Add a user to a team

Put a user in a team.

**Inputs**

- User (`person_id`, number, required): The user.
- Team (`team`, number, required): The team.

**Outputs**

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

**Example output**

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

### Assign a course

Assign a course to a user, optionally as required and with a deadline.

**Inputs**

- Course (`course_id`, text, required): The course.
- User (`person_id`, text, required): The user.
- Required (`required`, true/false): Whether the course is mandatory for the user.
- Deadline (`deadline`, date): When the user must have completed the course.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assigned_at": "example",
      "attempts": 1.0,
      "completed_at": "example",
      "course_id": 1,
      "deadline": "example",
      "progress": 1.0,
      "renewal_at": "example",
      "required": 1.0,
      "score": "example",
      "started_at": "example",
      "status": "completed",
      "time_spent": 1.0,
      "user_id": 1
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Create a course

Create a course shell: online, onsite or a webinar. Its content is built in eloomi.

**Inputs**

- Name (`name`, text, required): The course name as it appears in eloomi.
- Description (`description`, text): What the course covers.
- Type (`type`, text): The kind of course. Offline is called onsite in eloomi. One of: `online`, `offline`, `webinar`.
- Active (`active`, true/false): Whether the course is active.
- Expected duration (`expected_duration`, number): How long the course is expected to take, in minutes. At least 0.
- Reference number (`reference_number`, text): Your reference number for the course.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "active": 1,
      "cover": 1,
      "created_at": "example",
      "description": "example",
      "due_date": null,
      "expected_duration": 1.0,
      "id": 1,
      "inform_leader_deadline": 1.0,
      "lock_after_deadline": 1.0,
      "name": "example",
      "points": 1.0,
      "price": "example",
      "reference_number": "example",
      "reward": 1.0,
      "updated_at": "example",
      "voluntary": 1.0
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Create a department

Create a department. eloomi applies its members and leaders within 10 minutes.

**Inputs**

- Name (`name`, text, required): The department's name as it appears in eloomi.
- Code (`code`, text): Your own ID for the department, used to find it from other systems.
- Parent department (`parent_id`, number): The department this one sits under.
- Leaders (`leader_ids`, list): The department's leaders.
- Members (`user_ids`, list): The department's members.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "access_groups": [],
      "code": "example",
      "id": 1,
      "leaders": [],
      "name": "example",
      "parent_id": 1,
      "users": []
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Create a team

Create a team, optionally with its members and leaders.

**Inputs**

- Name (`name`, text, required): The team's name.
- Description (`description`, text): What the team is for.
- Members (`user_ids`, list): The team's members.
- Leaders (`leader_ids`, list): The team's leaders.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "custom_attributes": {
        "{key}": "example"
      },
      "description": "example",
      "id": 1,
      "leaders": [],
      "name": "example",
      "users": []
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Create a user

Add a user to eloomi, and choose how their account is activated.

**Inputs**

- First name (`first_name`, text): The user's first name.
- Last name (`last_name`, text): The user's last name.
- Email (`email`, text, required): The user's work email address.
- Employee ID (`employee_id`, text): The user's employee ID in your other systems.
- Title (`title`, text): The user's job title.
- Phone (`phone`, text): The user's phone number.
- Mobile phone (`mobile_phone`, text): The user's mobile phone number.
- Personal email (`personal_email`, text): The user's personal email address.
- Departments (`department_ids`, list): The departments the user belongs to.
- Teams (`team_ids`, list): The teams the user belongs to.
- Direct managers (`direct_manager_ids`, list): The user's direct managers.
- Permission (`user_permission`, text): The user's access level. Defaults to user. One of: `user`, `company adm`.
- Language (`language_code`, text): The language eloomi uses for the user, such as en-US. Defaults to the company's.
- Start of employment (`start_of_employment`, date): When the user starts employment.
- End of employment (`end_of_employment`, date): When the user's employment ends.
- Activation (`activate`, text): How the account is activated: not yet, by an email with a link, the company's default, with a generated password, or at once. One of: `deactivate`, `standard`, `company_default` (Company default), `pre_generated_password` (Pre generated password), `instant`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "access_groups": [],
      "activated_at": "example",
      "birthday": "example",
      "country": "example",
      "custom_attributes": {},
      "department_id": [],
      "direct_manager_ids": [],
      "email": "example",
      "employee_id": "example",
      "end_of_employment": "example",
      "first_name": "example",
      "gender": "M",
      "generic_role": "example",
      "id": 1,
      "initials": "example",
      "language": "example",
      "last_name": "example",
      "legal": "example",
      "level": 1,
      "location": "example",
      "mobile": "example",
      "personal_email": "example",
      "phone": "example",
      "salary_id": 1,
      "skill_level": "example",
      "start_of_employment": "example",
      "sub_company": "example",
      "team_id": [],
      "timezone": "example",
      "title": "example",
      "user_permission": "user",
      "username": "example"
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Delete a course

Delete a course from eloomi.

**Inputs**

- Course (`course_id`, number, required): The course.

**Outputs**

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

**Example output**

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

### Delete a department

Delete a department.

**Inputs**

- Department (`department_id`, number, required): The department.

**Outputs**

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

**Example output**

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

### Delete a team

Delete a team.

**Inputs**

- Team (`team`, number, required): The team.

**Outputs**

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

**Example output**

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

### Delete a user

Delete a user from eloomi.

**Inputs**

- User (`person_id`, number, required): The user.

**Outputs**

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

**Example output**

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

### Find a user by email

Get the user with a work email address.

**Inputs**

- Email (`email`, text, required): The user's work email address.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "access_groups": [],
      "activated_at": "example",
      "birthday": "example",
      "country": "example",
      "custom_attributes": {},
      "department_id": [],
      "direct_manager_ids": [],
      "email": "example",
      "employee_id": "example",
      "end_of_employment": "example",
      "first_name": "example",
      "gender": "M",
      "generic_role": "example",
      "id": 1,
      "initials": "example",
      "language": "example",
      "last_name": "example",
      "legal": "example",
      "level": 1,
      "location": "example",
      "mobile": "example",
      "personal_email": "example",
      "phone": "example",
      "salary_id": 1,
      "skill_level": "example",
      "start_of_employment": "example",
      "sub_company": "example",
      "team_id": [],
      "timezone": "example",
      "title": "example",
      "user_permission": "user",
      "username": "example"
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Get a course

Get one course.

**Inputs**

- Course (`course_id`, number, required): The course.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "active": 1,
      "cover": 1,
      "created_at": "example",
      "description": "example",
      "due_date": null,
      "expected_duration": 1.0,
      "id": 1,
      "inform_leader_deadline": 1.0,
      "lock_after_deadline": 1.0,
      "name": "example",
      "points": 1.0,
      "price": "example",
      "reference_number": "example",
      "reward": 1.0,
      "updated_at": "example",
      "voluntary": 1.0
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Get a department

Get one department.

**Inputs**

- Department (`department_id`, number, required): The department.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "access_groups": [],
      "code": "example",
      "id": 1,
      "leaders": [],
      "name": "example",
      "parent_id": 1,
      "users": []
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Get a team

Get one team.

**Inputs**

- Team (`team`, number, required): The team.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "custom_attributes": {
        "{key}": "example"
      },
      "description": "example",
      "id": 1,
      "leaders": [],
      "name": "example",
      "users": []
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Get a user

Get one user by their eloomi ID.

**Inputs**

- User (`person_id`, number, required): The user.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "access_groups": [],
      "activated_at": "example",
      "birthday": "example",
      "country": "example",
      "custom_attributes": {},
      "department_id": [],
      "direct_manager_ids": [],
      "email": "example",
      "employee_id": "example",
      "end_of_employment": "example",
      "first_name": "example",
      "gender": "M",
      "generic_role": "example",
      "id": 1,
      "initials": "example",
      "language": "example",
      "last_name": "example",
      "legal": "example",
      "level": 1,
      "location": "example",
      "mobile": "example",
      "personal_email": "example",
      "phone": "example",
      "salary_id": 1,
      "skill_level": "example",
      "start_of_employment": "example",
      "sub_company": "example",
      "team_id": [],
      "timezone": "example",
      "title": "example",
      "user_permission": "user",
      "username": "example"
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### List course participants

List the users assigned a course, with their progress, score and completion date.

**Inputs**

- Course (`course_id`, text, required): The course.
- Include status (`extended_mode`, true/false): Also return each participant's status and renewal date.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [],
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### List courses

List the courses on your eloomi platform.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [],
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### List departments

List the departments on your eloomi platform.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [],
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### List program participants

List the users assigned a program, with when they were assigned and completed it.

**Inputs**

- Program (`program_id`, text, required): The program.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [],
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### List programs

List the learning programs on your eloomi platform.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [],
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### List teams

List the teams on your eloomi platform.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [],
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### List users

List the users on your eloomi platform, optionally only pending, active, inactive or suspended ones, or the one with an employee ID.

**Inputs**

- Users (`mode`, text): Which users to list. Leave blank for all. One of: `all`, `pending`, `active`, `inactive`, `suspended`. Default: `all`.
- Employee ID (`employee_id`, text): Only the user with this employee ID.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many users to return on each page. Leave blank for all. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [],
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Remove a course assignment

Take a course away from a user.

**Inputs**

- Course (`course_id`, text, required): The course.
- User (`person_id`, text, required): The user.

**Outputs**

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

**Example output**

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

### Remove a user from a team

Take a user out of a team.

**Inputs**

- User (`person_id`, number, required): The user.
- Team (`team`, number, required): The team.

**Outputs**

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

**Example output**

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

### Update a course

Change a course's name, description, status or duration.

**Inputs**

- Course (`course_id`, number, required): The course.
- Name (`name`, text): The course name as it appears in eloomi.
- Description (`description`, text): What the course covers.
- Active (`active`, true/false): Whether the course is active.
- Expected duration (`expected_duration`, number): How long the course is expected to take, in minutes. At least 0.
- Reference number (`reference_number`, text): Your reference number for the course.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "active": 1,
      "cover": 1,
      "created_at": "example",
      "description": "example",
      "due_date": null,
      "expected_duration": 1.0,
      "id": 1,
      "inform_leader_deadline": 1.0,
      "lock_after_deadline": 1.0,
      "name": "example",
      "points": 1.0,
      "price": "example",
      "reference_number": "example",
      "reward": 1.0,
      "updated_at": "example",
      "voluntary": 1.0
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Update a department

Rename a department, move it, or add or remove members and leaders. eloomi applies member changes within 10 minutes.

**Inputs**

- Department (`department_id`, number, required): The department.
- Name (`name`, text): The department's new name.
- Code (`code`, text): Your own ID for the department, used to find it from other systems.
- Parent department (`parent_id`, number): The department this one sits under.
- Leaders (`leader_ids`, list): The department's leaders.
- Add members (`add_user_ids`, list): Users to add to the department.
- Remove members (`remove_user_ids`, list): Users to take out of the department.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "access_groups": [],
      "code": "example",
      "id": 1,
      "leaders": [],
      "name": "example",
      "parent_id": 1,
      "users": []
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Update a team

Rename a team or change its description, members or leaders. A list given replaces the team's current one.

**Inputs**

- Team (`team`, number, required): The team.
- Name (`name`, text): The team's new name.
- Description (`description`, text): What the team is for.
- Members (`user_ids`, list): The team's members.
- Leaders (`leader_ids`, list): The team's leaders.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "custom_attributes": {
        "{key}": "example"
      },
      "description": "example",
      "id": 1,
      "leaders": [],
      "name": "example",
      "users": []
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```

### Update a user

Change a user's details, departments, teams or managers.

**Inputs**

- User (`person_id`, number, required): The user.
- First name (`first_name`, text): The user's first name.
- Last name (`last_name`, text): The user's last name.
- Email (`email`, text): The user's work email address.
- Employee ID (`employee_id`, text): The user's employee ID in your other systems.
- Title (`title`, text): The user's job title.
- Phone (`phone`, text): The user's phone number.
- Mobile phone (`mobile_phone`, text): The user's mobile phone number.
- Personal email (`personal_email`, text): The user's personal email address.
- Departments (`department_ids`, list): The departments the user belongs to.
- Teams (`team_ids`, list): The teams the user belongs to.
- Direct managers (`direct_manager_ids`, list): The user's direct managers.
- Permission (`user_permission`, text): The user's access level. Defaults to user. One of: `user`, `company adm`.
- Language (`language_code`, text): The language eloomi uses for the user, such as en-US. Defaults to the company's.
- Start of employment (`start_of_employment`, date): When the user starts employment.
- End of employment (`end_of_employment`, date): When the user's employment ends.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "access_groups": [],
      "activated_at": "example",
      "birthday": "example",
      "country": "example",
      "custom_attributes": {},
      "department_id": [],
      "direct_manager_ids": [],
      "email": "example",
      "employee_id": "example",
      "end_of_employment": "example",
      "first_name": "example",
      "gender": "M",
      "generic_role": "example",
      "id": 1,
      "initials": "example",
      "language": "example",
      "last_name": "example",
      "legal": "example",
      "level": 1,
      "location": "example",
      "mobile": "example",
      "personal_email": "example",
      "phone": "example",
      "salary_id": 1,
      "skill_level": "example",
      "start_of_employment": "example",
      "sub_company": "example",
      "team_id": [],
      "timezone": "example",
      "title": "example",
      "user_permission": "user",
      "username": "example"
    },
    "extended_message": "example",
    "message": "example",
    "status": "example",
    "status_code": 1
  }
}
```
