# Loopio

> Search and update your Loopio Library, and run RFP response projects: their questions, answers, people and status.

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

## Actions

### Add project participant

Add a person to a project, or change their role on it. Everyone else on the project stays as they are.

**Inputs**

- Project (`project_id`, number, required): The Loopio project.
- Person (`member_id`, number, required): The person to add.
- Role (`role`, text): Their role on the project. One of: `COLLABORATOR`, `ASSIGNEE`, `ADMIN` (Project admin). Default: `COLLABORATOR`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "email": "example",
        "id": 1,
        "name": "example",
        "role": "example",
        "type": "example"
      }
    ]
  }
}
```

### Create library entry

Add a question and its approved answer to your Loopio Library.

**Inputs**

- Question (`question`, text, required): The question, as an RFP would ask it.
- Answer (`answer`, text, required): The answer to reuse whenever the question comes up. It can include HTML.
- Other wordings (`alternatives`, list): Other ways the same question is asked, each sharing the answer.
- Stack (`stack_id`, number, required): The Library stack, the top level of your Library.
- Category (`category_id`, number): A category in the stack.
- Sub-category (`sub_category_id`, number): A sub-category in the category.
- Language (`language`, text): The language of the entry. Loopio's default is English. One of: `en` (English), `de` (German), `es` (Spanish), `fr` (French), `pt` (Portuguese), `other` (Other language).
- Tags (`tags`, list): Tags to file the entry under, up to 100 characters each.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "alertText": "example",
    "answer": {
      "footnotes": [
        {
          "id": 1,
          "text": "example"
        }
      ],
      "text": "example"
    },
    "attachmentCount": 1,
    "createdDate": "example",
    "creator": {
      "id": 1,
      "name": "example"
    },
    "id": 1,
    "languageCode": "example",
    "lastReviewedBy": {
      "id": 1,
      "name": "example"
    },
    "lastReviewedDate": "example",
    "lastUpdatedBy": {
      "id": 1,
      "name": "example"
    },
    "lastUpdatedDate": "example",
    "libraryEntryOwner": {
      "id": 1,
      "initials": "example",
      "name": "example"
    },
    "location": {
      "category": {
        "id": 1,
        "name": "example"
      },
      "stack": {
        "id": 1,
        "name": "example"
      },
      "subCategory": {
        "id": 1,
        "name": "example"
      }
    },
    "questions": [
      {
        "complianceOption": {
          "id": 1,
          "text": "example"
        },
        "id": 1,
        "text": "example"
      }
    ],
    "status": "example",
    "tags": [
      "example"
    ],
    "usageCounts": {
      "projectUsageCount": 1,
      "timesCopied": 1,
      "totalUsageCount": 1
    }
  }
}
```

### Create project

Start a new, blank response project in Loopio.

**Inputs**

- Project name (`name`, text, required): The name of the project to create.
- Company (`company_name`, text, required): The company the response is for.
- Project type (`project_type`, text, required): What kind of request the project answers. One of: `RFP` (RFP (request for proposal)), `RFI` (RFI (request for information)), `DDQ` (DDQ (due diligence questionnaire)), `SQ` (Security questionnaire), `PP` (Proactive proposal), `OTHER`.
- Due date (`due_date`, date, required): The day the response is due. Loopio sets the deadline to the end of that day.
- Description (`description`, text): A description of the project.
- Owner (`owner_id`, number): Who owns the project. Leave empty to make the connected app's user the owner.
- Track changes (`track_changes`, true/false): Turn on Track Changes for the project. It can only be set now, when the project is created.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "companyName": "example",
    "createdDate": "example",
    "creator": {
      "id": 1,
      "name": "example"
    },
    "description": "example",
    "dueDate": "example",
    "id": 1,
    "name": "example",
    "owner": {
      "id": 1,
      "name": "example"
    },
    "projectType": "example",
    "status": "example"
  }
}
```

### Create project from template

Start a project from one of your published project templates. Loopio copies the template in the background: Get template copy status says when it is done.

**Inputs**

- Template (`template_id`, number, required): The published project template to copy.
- Project name (`name`, text, required): The name of the project to create.
- Company (`company_name`, text, required): The company the response is for.
- Project type (`project_type`, text, required): What kind of request the project answers. One of: `RFP` (RFP (request for proposal)), `RFI` (RFI (request for information)), `DDQ` (DDQ (due diligence questionnaire)), `SQ` (Security questionnaire), `PP` (Proactive proposal), `OTHER`.
- Due date (`due_date`, date, required): The day the response is due. Loopio sets the deadline to the end of that day.
- Description (`description`, text): A description of the project.
- Owner (`owner_id`, number): Who owns the project. Leave empty to make the connected app's user the owner.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "projectId": 1,
    "taskId": 1
  }
}
```

### Create project question

Add a question, and optionally its answer, to a section or sub-section of a project.

**Inputs**

- Project (`project_id`, number, required): The Loopio project.
- Section (`section_id`, number): The section to add the question to. Choose a section or enter a sub-section ID, not both.
- Sub-section ID (`sub_section_id`, number): The sub-section to add the question to, instead of a section.
- Question (`question`, text, required): The question.
- Answer (`answer`, text): The answer. Leave empty to add the question unanswered.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "answer": {
      "complianceAnswers": [
        {
          "id": 1,
          "label": "example",
          "option": "example"
        }
      ],
      "text": "example"
    },
    "assignee": {
      "email": "example",
      "id": 1,
      "name": "example",
      "type": "example"
    },
    "id": 1,
    "project": {
      "id": 1
    },
    "question": "example",
    "reviewer": {
      "email": "example",
      "id": 1,
      "name": "example",
      "type": "example"
    },
    "section": {
      "id": 1
    },
    "subSection": {
      "id": 1
    }
  }
}
```

### Create project section

Add a section to a project, to hold questions.

**Inputs**

- Project (`project_id`, number, required): The Loopio project.
- Section name (`name`, text, required): The section's name.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": 1,
    "name": "example",
    "project": {
      "id": 1
    }
  }
}
```

### Delete library entry

Delete an entry from your Loopio Library.

**Inputs**

- Library entry ID (`library_entry_id`, number, required): The Library entry's ID. Search library entries returns it.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Delete project

Delete a project with all its sections, questions and answers.

**Inputs**

- Project (`project_id`, number, required): The Loopio project.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Delete project question

Delete a question and its answer from a project.

**Inputs**

- Project question ID (`project_entry_id`, number, required): The project question's ID. List project questions returns it.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Get library entry

Get a Library entry with its questions, answer, tags, status and location.

**Inputs**

- Library entry ID (`library_entry_id`, number, required): The Library entry's ID. Search library entries returns it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "alertText": "example",
    "answer": {
      "footnotes": [
        {
          "id": 1,
          "text": "example"
        }
      ],
      "text": "example"
    },
    "attachmentCount": 1,
    "createdDate": "example",
    "creator": {
      "id": 1,
      "name": "example"
    },
    "id": 1,
    "languageCode": "example",
    "lastReviewedBy": {
      "id": 1,
      "name": "example"
    },
    "lastReviewedDate": "example",
    "lastUpdatedBy": {
      "id": 1,
      "name": "example"
    },
    "lastUpdatedDate": "example",
    "libraryEntryOwner": {
      "id": 1,
      "initials": "example",
      "name": "example"
    },
    "location": {
      "category": {
        "id": 1,
        "name": "example"
      },
      "stack": {
        "id": 1,
        "name": "example"
      },
      "subCategory": {
        "id": 1,
        "name": "example"
      }
    },
    "questions": [
      {
        "complianceOption": {
          "id": 1,
          "text": "example"
        },
        "id": 1,
        "text": "example"
      }
    ],
    "status": "example",
    "tags": [
      "example"
    ],
    "usageCounts": {
      "projectUsageCount": 1,
      "timesCopied": 1,
      "totalUsageCount": 1
    }
  }
}
```

### Get project

Get a project's name, type, status, company, owner and due date.

**Inputs**

- Project (`project_id`, number, required): The Loopio project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "companyName": "example",
    "createdDate": "example",
    "creator": {
      "id": 1,
      "name": "example"
    },
    "description": "example",
    "dueDate": "example",
    "id": 1,
    "name": "example",
    "owner": {
      "id": 1,
      "name": "example"
    },
    "projectType": "example",
    "status": "example"
  }
}
```

### Get project progress

Get how far a project has got: its questions by state (unassigned, assigned, in review, complete) and the workdays left before it is due.

**Inputs**

- Project (`project_id`, number, required): The Loopio project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "companyName": "example",
    "completedDate": "example",
    "description": "example",
    "dueDate": "example",
    "id": 1,
    "isComplete": true,
    "name": "example",
    "owner": {
      "id": 1,
      "name": "example"
    },
    "projectType": "example",
    "questions": {
      "assigned": 1,
      "complete": 1,
      "review": 1,
      "total": 1,
      "unassigned": 1
    },
    "status": "example",
    "workdays": {
      "elapsed": 1,
      "left": 1,
      "total": 1
    }
  }
}
```

### Get project question

Get one of a project's questions with its answer, assignee and reviewer.

**Inputs**

- Project question ID (`project_entry_id`, number, required): The project question's ID. List project questions returns it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "answer": {
      "complianceAnswers": [
        {
          "id": 1,
          "label": "example",
          "option": "example"
        }
      ],
      "text": "example"
    },
    "assignee": {
      "email": "example",
      "id": 1,
      "name": "example",
      "type": "example"
    },
    "id": 1,
    "project": {
      "id": 1
    },
    "question": "example",
    "reviewer": {
      "email": "example",
      "id": 1,
      "name": "example",
      "type": "example"
    },
    "section": {
      "id": 1
    },
    "subSection": {
      "id": 1
    }
  }
}
```

### Get template copy status

Check whether a project started from a template is ready: pending, complete with the project, or failed with the reason.

**Inputs**

- Task ID (`task_id`, number, required): The task ID that Create project from template returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "done": true,
    "error": "example",
    "project": {
      "companyName": "example",
      "createdDate": "example",
      "creator": {
        "id": 1,
        "name": "example"
      },
      "description": "example",
      "dueDate": "example",
      "id": 1,
      "name": "example",
      "owner": {
        "id": 1,
        "name": "example"
      },
      "projectType": "example",
      "status": "example"
    },
    "status": "example"
  }
}
```

### List library stacks

List the Library's stacks with their categories and sub-categories.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "categories": [
          {
            "id": 1,
            "name": "example",
            "stackID": 1,
            "subCategories": [
              {
                "categoryID": 1,
                "id": 1,
                "name": "example",
                "stackID": 1
              }
            ]
          }
        ],
        "id": 1,
        "name": "example"
      }
    ],
    "totalItems": 1,
    "totalPages": 1
  }
}
```

### List project participants

List the people and teams working on a project, with their roles.

**Inputs**

- Project (`project_id`, number, required): The Loopio project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "email": "example",
        "id": 1,
        "name": "example",
        "role": "example",
        "type": "example"
      }
    ]
  }
}
```

### List project questions

List a project's questions with their current answers, assignees and reviewers.

**Inputs**

- Project (`project_id`, number, required): The Loopio project.
- Section (`section_id`, number): A section of the project.
- Sub-section ID (`sub_section_id`, number): Only questions in this sub-section.
- Page (`page`, number): Which page of results to return, starting at 1. A list step returns next_page while there are more. At least 1.
- Page size (`page_size`, number): How many questions to return on each page. Loopio's default is 10. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "answer": {
          "complianceAnswers": [
            {
              "id": 1,
              "label": "example",
              "option": "example"
            }
          ],
          "text": "example"
        },
        "assignee": {
          "email": "example",
          "id": 1,
          "name": "example",
          "type": "example"
        },
        "id": 1,
        "project": {
          "id": 1
        },
        "question": "example",
        "reviewer": {
          "email": "example",
          "id": 1,
          "name": "example",
          "type": "example"
        },
        "section": {
          "id": 1
        },
        "subSection": {
          "id": 1
        }
      }
    ],
    "next_page": 1,
    "total_items": 1,
    "total_pages": 1
  }
}
```

### List project sections

List the sections of a project.

**Inputs**

- Project (`project_id`, number, required): The Loopio project.
- Page (`page`, number): Which page of results to return, starting at 1. A list step returns next_page while there are more. At least 1.
- Page size (`page_size`, number): How many sections to return on each page. Loopio's default is 10. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "id": 1,
        "name": "example",
        "project": {
          "id": 1
        }
      }
    ],
    "next_page": 1,
    "total_items": 1,
    "total_pages": 1
  }
}
```

### List project templates

List your published project templates.

**Inputs**

- Statuses (`statuses`, list): Only templates with these statuses. One or more of: `ACTIVE`, `DONE`, `DELETED`.
- Page (`page`, number): Which page of results to return, starting at 1. A list step returns next_page while there are more. At least 1.
- Page size (`page_size`, number): How many templates to return on each page. Loopio's default is 10. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "description": "example",
        "id": 1,
        "name": "example",
        "status": "example"
      }
    ],
    "next_page": 1,
    "total_items": 1,
    "total_pages": 1
  }
}
```

### List projects

List the projects you can see, optionally only some types or owners. Loopio leaves confidential projects out.

**Inputs**

- Project types (`project_types`, list): Only projects of these types. One or more of: `RFP` (RFP (request for proposal)), `RFI` (RFI (request for information)), `DDQ` (DDQ (due diligence questionnaire)), `SQ` (Security questionnaire), `PP` (Proactive proposal), `OTHER`.
- Owners (`owner_ids`, list): Only projects these people own.
- Page (`page`, number): Which page of results to return, starting at 1. A list step returns next_page while there are more. At least 1.
- Page size (`page_size`, number): How many projects to return on each page. Loopio's default is 10. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "companyName": "example",
        "createdDate": "example",
        "creator": {
          "id": 1,
          "name": "example"
        },
        "description": "example",
        "dueDate": "example",
        "id": 1,
        "name": "example",
        "owner": {
          "id": 1,
          "name": "example"
        },
        "projectType": "example",
        "status": "example"
      }
    ],
    "next_page": 1,
    "total_items": 1,
    "total_pages": 1
  }
}
```

### List users

List the people in your Loopio account, or find them by name, email or team.

**Inputs**

- Search for (`search_query`, text): A first or last name, email address or team name to look for.
- Statuses (`statuses`, list): Only people with these account statuses. One or more of: `ENABLED`, `PENDING` (Invited, not signed in yet), `DISABLED`, `LOCKED`.
- Changed after (`changed_after`, date and time): Only people whose details changed after this time.
- Sort by (`sort_by`, text): What to sort by. One of: `id` (When they were added), `fullName` (Name), `lastLogin` (Last sign-in).
- Order (`sort_direction`, text): Ascending or descending. One of: `asc` (Ascending), `desc` (Descending).
- Page (`page`, number): Which page of results to return, starting at 1. A list step returns next_page while there are more. At least 1.
- Page size (`page_size`, number): How many people to return on each page. Loopio's default is 10. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "email": "example",
        "firstName": "example",
        "guid": "example",
        "id": 1,
        "lastName": "example",
        "roleId": 1,
        "status": "example"
      }
    ],
    "next_page": 1,
    "total_items": 1,
    "total_pages": 1
  }
}
```

### Search library entries

Find Library entries by words in their questions, answers or tags, by stack or category, language or when they last changed.

**Inputs**

- Search for (`search_query`, text): Words to look for in the questions, answers and tags.
- Stack (`stack_id`, number): The Library stack, the top level of your Library.
- Category (`category_id`, number): A category in the stack.
- Language (`language`, text): Only entries in this language. Leave empty for Loopio's default. One of: `all` (Every language), `en` (English), `de` (German), `es` (Spanish), `fr` (French), `pt` (Portuguese), `other` (Other language).
- Changed after (`updated_after`, date and time): Only entries changed after this time.
- Has attachments (`has_attachment`, true/false): Only entries with at least one attachment.
- Exact phrase (`exact_phrase`, true/false): Find the search words only together and in the order given.
- Include synonyms (`synonyms`, true/false): Also find words that mean the same as the search words.
- Page (`page`, number): Which page of results to return, starting at 1. A list step returns next_page while there are more. At least 1.
- Page size (`page_size`, number): How many entries to return on each page. Up to 200; Loopio's default is 10. From 1 to 200.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "alertText": "example",
        "answer": {
          "footnotes": [
            {
              "id": 1,
              "text": "example"
            }
          ],
          "text": "example"
        },
        "attachmentCount": 1,
        "createdDate": "example",
        "creator": {
          "id": 1,
          "name": "example"
        },
        "id": 1,
        "languageCode": "example",
        "lastReviewedBy": {
          "id": 1,
          "name": "example"
        },
        "lastReviewedDate": "example",
        "lastUpdatedBy": {
          "id": 1,
          "name": "example"
        },
        "lastUpdatedDate": "example",
        "libraryEntryOwner": {
          "id": 1,
          "initials": "example",
          "name": "example"
        },
        "location": {
          "category": {
            "id": 1,
            "name": "example"
          },
          "stack": {
            "id": 1,
            "name": "example"
          },
          "subCategory": {
            "id": 1,
            "name": "example"
          }
        },
        "questions": [
          {
            "complianceOption": {
              "id": 1,
              "text": "example"
            },
            "id": 1,
            "text": "example"
          }
        ],
        "status": "example",
        "tags": [
          "example"
        ],
        "usageCounts": {
          "projectUsageCount": 1,
          "timesCopied": 1,
          "totalUsageCount": 1
        }
      }
    ],
    "next_page": 1,
    "total_items": 1,
    "total_pages": 1
  }
}
```

### Update library entry

Replace a Library entry's answer or main question, or add tags to it. Anything left empty stays as it is.

**Inputs**

- Library entry ID (`library_entry_id`, number, required): The Library entry's ID. Search library entries returns it.
- New answer (`answer`, text): The new answer. Loopio removes any merge variables from the old one.
- New question (`question`, text): New wording for the entry's first question.
- Tags to add (`add_tags`, list): Tags to add to the entry's tags.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "alertText": "example",
    "answer": {
      "footnotes": [
        {
          "id": 1,
          "text": "example"
        }
      ],
      "text": "example"
    },
    "attachmentCount": 1,
    "createdDate": "example",
    "creator": {
      "id": 1,
      "name": "example"
    },
    "id": 1,
    "languageCode": "example",
    "lastReviewedBy": {
      "id": 1,
      "name": "example"
    },
    "lastReviewedDate": "example",
    "lastUpdatedBy": {
      "id": 1,
      "name": "example"
    },
    "lastUpdatedDate": "example",
    "libraryEntryOwner": {
      "id": 1,
      "initials": "example",
      "name": "example"
    },
    "location": {
      "category": {
        "id": 1,
        "name": "example"
      },
      "stack": {
        "id": 1,
        "name": "example"
      },
      "subCategory": {
        "id": 1,
        "name": "example"
      }
    },
    "questions": [
      {
        "complianceOption": {
          "id": 1,
          "text": "example"
        },
        "id": 1,
        "text": "example"
      }
    ],
    "status": "example",
    "tags": [
      "example"
    ],
    "usageCounts": {
      "projectUsageCount": 1,
      "timesCopied": 1,
      "totalUsageCount": 1
    }
  }
}
```

### Update project question

Change a project question's wording or answer. Anything left empty stays as it is.

**Inputs**

- Project question ID (`project_entry_id`, number, required): The project question's ID. List project questions returns it.
- Question (`question`, text): The question's new wording.
- Answer (`answer`, text): The new answer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "answer": {
      "complianceAnswers": [
        {
          "id": 1,
          "label": "example",
          "option": "example"
        }
      ],
      "text": "example"
    },
    "assignee": {
      "email": "example",
      "id": 1,
      "name": "example",
      "type": "example"
    },
    "id": 1,
    "project": {
      "id": 1
    },
    "question": "example",
    "reviewer": {
      "email": "example",
      "id": 1,
      "name": "example",
      "type": "example"
    },
    "section": {
      "id": 1
    },
    "subSection": {
      "id": 1
    }
  }
}
```

### Update project status

Mark a project active, won, lost, done or stopped.

**Inputs**

- Project (`project_id`, number, required): The Loopio project.
- Status (`status`, text, required): The project's new status. One of: `ACTIVE`, `WON`, `LOST`, `DONE`, `STOPPED`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "companyName": "example",
    "createdDate": "example",
    "creator": {
      "id": 1,
      "name": "example"
    },
    "description": "example",
    "dueDate": "example",
    "id": 1,
    "name": "example",
    "owner": {
      "id": 1,
      "name": "example"
    },
    "projectType": "example",
    "status": "example"
  }
}
```
