# Hyperproof

> Manage compliance in Hyperproof: controls, labels and proof, risks, issues and tasks.

App · 30 actions. Web page: https://docs.lodol.com/docs/integrations/hyperproof

## Actions

### Add comment to issue

Post a comment on an issue.

**Inputs**

- Issue (`issueId`, text, required): The issue.
- Comment (`commentTextFormatted`, text, required): The comment.
- Internal only (`isInternalComment`, true/false): Hide the comment from external auditors.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "createdBy": "example",
    "createdOn": "example",
    "id": "example",
    "message": "example",
    "objectId": "example",
    "objectType": "example",
    "status": "example"
  }
}
```

### Add comment to task

Post a comment on a task.

**Inputs**

- Task (`taskId`, text, required): The task.
- Comment (`commentTextFormatted`, text, required): The comment.
- Internal only (`isInternalComment`, true/false): Hide the comment from external auditors.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "createdBy": "example",
    "createdOn": "example",
    "id": "example",
    "message": "example",
    "objectId": "example",
    "objectType": "example",
    "status": "example"
  }
}
```

### Add proof to control

Upload a file as proof and link it to a control.

**Inputs**

- Control (`controlId`, text, required): The control.
- File (`proof`, text, required): The file to upload as proof, or a link to it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "contentType": "example",
    "createdOn": "example",
    "filename": "example",
    "id": "example",
    "ownedBy": "example",
    "size": 1,
    "status": "example",
    "updatedOn": "example",
    "uploadedOn": "example",
    "version": 1
  }
}
```

### Add proof to label

Upload a file as proof and link it to a label.

**Inputs**

- Label (`labelId`, text, required): The label.
- File (`proof`, text, required): The file to upload as proof, or a link to it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "contentType": "example",
    "createdOn": "example",
    "filename": "example",
    "id": "example",
    "ownedBy": "example",
    "size": 1,
    "status": "example",
    "updatedOn": "example",
    "uploadedOn": "example",
    "version": 1
  }
}
```

### Create control

Add a control to the organization.

**Inputs**

- Control ID (`controlIdentifier`, text, required): The control's ID, unique in the organization, such as AC-01.
- Name (`name`, text): The control's name.
- Description (`description`, text, required): What the control does.
- Owner (`owner`, text, required): The person who owns the control.
- Notes (`notes`, text): Notes about the control.
- Domain (`domainName`, text): The domain to file it under.
- Implementation (`implementation`, text): How far the control is implemented. One of: `unknown`, `notStarted` (Not started), `inProgress` (In progress), `completed`.
- Testing status (`testingStatus`, text): How the control has tested. One of: `notTested` (Not tested), `inProgress` (In progress), `effective`, `ineffective`.
- Automation (`automation`, text): How far the control is automated. One of: `notStarted` (Not started), `partial` (Partly automated), `fullyAutomated` (Fully automated), `cantAutomate` (Can't be automated).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "automation": "example",
    "controlIdentifier": "example",
    "createdOn": "example",
    "description": "example",
    "domainName": "example",
    "freshness": "example",
    "health": "example",
    "id": "example",
    "implementation": "example",
    "name": "example",
    "notes": "example",
    "owner": {
      "email": "example",
      "givenName": "example",
      "id": "example",
      "status": "example",
      "surname": "example",
      "title": "example",
      "type": "example",
      "userId": "example"
    },
    "status": "example",
    "testingStatus": "example",
    "updatedOn": "example"
  }
}
```

### Create issue

Raise an issue about a control, label, risk or other object.

**Inputs**

- Summary (`summary`, text, required): A short summary.
- About a (`source_type`, text, required): The kind of object the issue is about. One of: `control`, `label`, `risk`, `program`, `audit`, `policy`, `request`.
- Object ID (`source_id`, text, required): The ID of the control, label, risk or other object.
- Description (`description`, text): The details.
- Assignee (`assigneeId`, text): The person to assign it to.
- Priority (`priority`, text): Its priority. One of: `highest`, `high`, `medium`, `low`, `lowest`.
- Impact (`impact`, text): Its impact. One of: `highest`, `high`, `medium`, `low`, `lowest`.
- Due (`dueDate`, date and time): When it is due.
- Issue status (`workItemStatus`, text): Its state. One of: `notStarted` (Not started), `inProgress` (In progress), `remediated`, `accepted`.
- Action plan (`actionPlan`, text): The plan to fix it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "assigneeId": "example",
    "createdOn": "example",
    "description": "example",
    "dueDate": "example",
    "id": "example",
    "impact": "example",
    "index": 1,
    "priority": "example",
    "sourceId": "example",
    "sourceName": "example",
    "sourceType": "example",
    "status": "example",
    "summary": "example",
    "updatedOn": "example",
    "workItemStatus": "example"
  }
}
```

### Create label

Add a label, for grouping proof and controls.

**Inputs**

- Name (`name`, text, required): The label's name.
- Description (`description`, text): What the label is for.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "createdOn": "example",
    "description": "example",
    "freshness": "example",
    "id": "example",
    "name": "example",
    "status": "example",
    "updatedOn": "example"
  }
}
```

### Create risk

Add a risk to a risk register.

**Inputs**

- Risk register ID (`riskRegisterId`, text, required): The risk register to add it to. Every risk shows its register's ID in List risks.
- Risk ID (`riskIdentifier`, text, required): A readable ID for the risk, unique in the organization, such as R-12.
- Name (`name`, text): The risk's name.
- Description (`description`, text, required): What the risk is.
- Owner (`ownerId`, text, required): The person who owns the risk.
- Category (`category`, text): The risk's category.
- Response (`response`, text): How the risk is being handled. One of: `mitigate`, `accept`, `transfer`, `avoid`, `notSet` (Not set).
- Likelihood level (`likelihoodLevel`, number): Its likelihood, as a position on the register's scale: 0 is the lowest. At least 0.
- Impact level (`impactLevel`, number): Its impact, as a position on the register's scale: 0 is the lowest. At least 0.
- Tolerance level (`toleranceLevel`, number): The tolerance, as a position on the register's scale: 0 is the lowest. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "category": "example",
    "createdOn": "example",
    "description": "example",
    "health": "example",
    "id": "example",
    "impactLevel": 1,
    "likelihoodLevel": 1,
    "name": "example",
    "ownerId": "example",
    "response": "example",
    "riskIdentifier": "example",
    "riskRegisterId": "example",
    "riskStage": "example",
    "status": "example",
    "toleranceLevel": 1,
    "updatedOn": "example"
  }
}
```

### Create task

Create a task about a control, label, risk or other object.

**Inputs**

- Title (`title`, text, required): The task's title.
- About a (`target_type`, text, required): The kind of object the task is about. One of: `control`, `label`, `risk`, `program`, `audit`, `policy`, `request`.
- Object ID (`target_id`, text, required): The ID of the control, label, risk or other object.
- Description (`description`, text): What needs doing.
- Assignee (`assigneeId`, text): The person to assign it to.
- Priority (`priority`, text): Its priority. One of: `highest`, `high`, `medium`, `low`, `lowest`.
- Due (`dueDate`, date and time): When it is due.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "assigneeId": "example",
    "createdOn": "example",
    "description": "example",
    "dueDate": "example",
    "id": "example",
    "priority": "example",
    "targetId": "example",
    "targetType": "example",
    "taskStatusId": "example",
    "title": "example",
    "updatedOn": "example"
  }
}
```

### Delete issue comment

Delete a comment from an issue.

**Inputs**

- Issue (`issueId`, text, required): The issue.
- Comment (`commentId`, text, required): The comment's ID, from Add comment or Get comments.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "createdBy": "example",
    "createdOn": "example",
    "id": "example",
    "message": "example",
    "objectId": "example",
    "objectType": "example",
    "status": "example"
  }
}
```

### Delete task comment

Delete a comment from a task.

**Inputs**

- Task (`taskId`, text, required): The task.
- Comment (`commentId`, text, required): The comment's ID, from Add comment or Get comments.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "createdBy": "example",
    "createdOn": "example",
    "id": "example",
    "message": "example",
    "objectId": "example",
    "objectType": "example",
    "status": "example"
  }
}
```

### Get control

Get one control, with its owner, health and testing status.

**Inputs**

- Control (`controlId`, text, required): The control.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "automation": "example",
    "controlIdentifier": "example",
    "createdOn": "example",
    "description": "example",
    "domainName": "example",
    "freshness": "example",
    "health": "example",
    "id": "example",
    "implementation": "example",
    "name": "example",
    "notes": "example",
    "owner": {
      "email": "example",
      "givenName": "example",
      "id": "example",
      "status": "example",
      "surname": "example",
      "title": "example",
      "type": "example",
      "userId": "example"
    },
    "status": "example",
    "testingStatus": "example",
    "updatedOn": "example"
  }
}
```

### Get current user

Get the person or service account the connection signs in as.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example",
    "givenName": "example",
    "id": "example",
    "state": "example",
    "surname": "example",
    "timeZone": "example"
  }
}
```

### Get issue

Get one issue.

**Inputs**

- Issue (`issueId`, text, required): The issue.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "assigneeId": "example",
    "createdOn": "example",
    "description": "example",
    "dueDate": "example",
    "id": "example",
    "impact": "example",
    "index": 1,
    "priority": "example",
    "sourceId": "example",
    "sourceName": "example",
    "sourceType": "example",
    "status": "example",
    "summary": "example",
    "updatedOn": "example",
    "workItemStatus": "example"
  }
}
```

### Get risk

Get one risk, with its scores and owner.

**Inputs**

- Risk (`riskId`, text, required): The risk.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "category": "example",
    "createdOn": "example",
    "description": "example",
    "health": "example",
    "id": "example",
    "impactLevel": 1,
    "likelihoodLevel": 1,
    "name": "example",
    "ownerId": "example",
    "response": "example",
    "riskIdentifier": "example",
    "riskRegisterId": "example",
    "riskStage": "example",
    "status": "example",
    "toleranceLevel": 1,
    "updatedOn": "example"
  }
}
```

### Get task

Get one task.

**Inputs**

- Task (`taskId`, text, required): The task.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "assigneeId": "example",
    "createdOn": "example",
    "description": "example",
    "dueDate": "example",
    "id": "example",
    "priority": "example",
    "targetId": "example",
    "targetType": "example",
    "taskStatusId": "example",
    "title": "example",
    "updatedOn": "example"
  }
}
```

### List controls

List the organization's controls.

**Inputs**

- Status (`status`, text): Only objects with this status. Leave empty for active ones. One of: `active`, `archived`.
- Include scoped controls (`expandScopes`, true/false): Also list each scope's copy of a scoped control.

**Outputs**

- `data` (list): The response from Hyperproof.

**Example output**

```json
{
  "data": [
    {
      "automation": "example",
      "controlIdentifier": "example",
      "createdOn": "example",
      "description": "example",
      "domainName": "example",
      "freshness": "example",
      "health": "example",
      "id": "example",
      "implementation": "example",
      "name": "example",
      "notes": "example",
      "owner": {
        "email": "example",
        "givenName": "example",
        "id": "example",
        "status": "example",
        "surname": "example",
        "title": "example",
        "type": "example",
        "userId": "example"
      },
      "status": "example",
      "testingStatus": "example",
      "updatedOn": "example"
    }
  ]
}
```

### List issues

List issues, filtered by status, assignee or when they were made or changed.

**Inputs**

- Issue status (`workItemStatus`, text): Only issues in this state. One of: `notStarted` (Not started), `inProgress` (In progress), `remediated`, `accepted`.
- Assignees (`assigneeIds`, list): Only issues assigned to these people.
- Created after (`createdAfter`, date and time): Only issues created after this time.
- Changed after (`modifiedAfter`, date and time): Only issues changed after this time.
- Status (`status`, text): Only active or only archived issues. One of: `active`, `archived`.

**Outputs**

- `data` (list): The response from Hyperproof.

**Example output**

```json
{
  "data": [
    {
      "assigneeId": "example",
      "createdOn": "example",
      "description": "example",
      "dueDate": "example",
      "id": "example",
      "impact": "example",
      "index": 1,
      "priority": "example",
      "sourceId": "example",
      "sourceName": "example",
      "sourceType": "example",
      "status": "example",
      "summary": "example",
      "updatedOn": "example",
      "workItemStatus": "example"
    }
  ]
}
```

### List labels

List the organization's labels.

**Inputs**

- Status (`status`, text): Only objects with this status. Leave empty for active ones. One of: `active`, `archived`.

**Outputs**

- `data` (list): The response from Hyperproof.

**Example output**

```json
{
  "data": [
    {
      "createdOn": "example",
      "description": "example",
      "freshness": "example",
      "id": "example",
      "name": "example",
      "status": "example",
      "updatedOn": "example"
    }
  ]
}
```

### List programs

List the organization's compliance programs, such as SOC 2 or ISO 27001.

**Inputs**

- Status (`status`, text): Only objects with this status. Leave empty for active ones. One of: `active`, `archived`.

**Outputs**

- `data` (list): The response from Hyperproof.

**Example output**

```json
{
  "data": [
    {
      "description": "example",
      "id": "example",
      "name": "example",
      "primaryContactId": "example",
      "sourceFramework": "example",
      "workStatus": "example"
    }
  ]
}
```

### List proof

List proof files, optionally only those linked to one control or label.

**Inputs**

- Linked to (`objectType`, text): List only proof linked to this kind of object. One of: `control`, `label`.
- Control or label ID (`objectId`, text): The control's or label's ID, with Linked to.
- Sort by (`sortBy`, text): What to sort by. One of: `uploadedOn` (Upload date), `createdBy` (Uploader).
- Order (`sortDirection`, text): Sort order. One of: `desc` (Newest first), `asc` (Oldest first).
- Limit (`limit`, number): How many to return. From 1 to 1000.
- Next page token (`nextToken`, text): The nextToken from the previous page, for the next page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "contentType": "example",
        "createdOn": "example",
        "filename": "example",
        "id": "example",
        "ownedBy": "example",
        "size": 1,
        "status": "example",
        "updatedOn": "example",
        "uploadedOn": "example",
        "version": 1
      }
    ],
    "nextToken": "example"
  }
}
```

### List risks

List the organization's risks.

**Inputs**

- Risk register ID (`riskRegisterId`, text): Only risks in this risk register.
- Status (`status`, text): Only objects with this status. Leave empty for active ones. One of: `active`, `archived`.

**Outputs**

- `data` (list): The response from Hyperproof.

**Example output**

```json
{
  "data": [
    {
      "category": "example",
      "createdOn": "example",
      "description": "example",
      "health": "example",
      "id": "example",
      "impactLevel": 1,
      "likelihoodLevel": 1,
      "name": "example",
      "ownerId": "example",
      "response": "example",
      "riskIdentifier": "example",
      "riskRegisterId": "example",
      "riskStage": "example",
      "status": "example",
      "toleranceLevel": 1,
      "updatedOn": "example"
    }
  ]
}
```

### List task statuses

List the statuses a task can be in.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Hyperproof.

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "name": "example",
      "sortOrder": 1,
      "type": "example"
    }
  ]
}
```

### List tasks

List tasks, filtered by what they are about, assignee or when they changed.

**Inputs**

- About a (`targetObjectType`, text): Only tasks about this kind of object. One of: `control`, `label`, `risk`, `program`, `audit`, `policy`, `request`.
- Object IDs (`targetObjectIds`, list): Only tasks about these objects, by ID, with About a.
- Assignees (`assigneeIds`, list): Only tasks assigned to these people.
- Changed after (`modifiedAfter`, date and time): Only tasks changed after this time.

**Outputs**

- `data` (list): The response from Hyperproof.

**Example output**

```json
{
  "data": [
    {
      "assigneeId": "example",
      "createdOn": "example",
      "description": "example",
      "dueDate": "example",
      "id": "example",
      "priority": "example",
      "targetId": "example",
      "targetType": "example",
      "taskStatusId": "example",
      "title": "example",
      "updatedOn": "example"
    }
  ]
}
```

### List users

List the people in the Hyperproof organization.

**Inputs**

- Include deactivated (`includeDeactivated`, true/false): Include people who have been deactivated.

**Outputs**

- `data` (list): The response from Hyperproof.

**Example output**

```json
{
  "data": [
    {
      "email": "example",
      "givenName": "example",
      "id": "example",
      "status": "example",
      "surname": "example",
      "title": "example",
      "type": "example",
      "userId": "example"
    }
  ]
}
```

### Update control

Change a control. Only the fields you fill in change.

**Inputs**

- Control (`controlId`, text, required): The control.
- Name (`name`, text): The control's new name.
- Description (`description`, text): The new description.
- Notes (`notes`, text): New notes.
- Owner (`owner`, text): The control's new owner.
- Implementation (`implementation`, text): How far the control is implemented. One of: `unknown`, `notStarted` (Not started), `inProgress` (In progress), `completed`.
- Testing status (`testingStatus`, text): How the control has tested. One of: `notTested` (Not tested), `inProgress` (In progress), `effective`, `ineffective`.
- Automation (`automation`, text): How far the control is automated. One of: `notStarted` (Not started), `partial` (Partly automated), `fullyAutomated` (Fully automated), `cantAutomate` (Can't be automated).
- Status (`status`, text): Archive the control, or make an archived one active again. One of: `active`, `archived`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "automation": "example",
    "controlIdentifier": "example",
    "createdOn": "example",
    "description": "example",
    "domainName": "example",
    "freshness": "example",
    "health": "example",
    "id": "example",
    "implementation": "example",
    "name": "example",
    "notes": "example",
    "owner": {
      "email": "example",
      "givenName": "example",
      "id": "example",
      "status": "example",
      "surname": "example",
      "title": "example",
      "type": "example",
      "userId": "example"
    },
    "status": "example",
    "testingStatus": "example",
    "updatedOn": "example"
  }
}
```

### Update issue

Change an issue. Only the fields you fill in change.

**Inputs**

- Issue (`issueId`, text, required): The issue.
- Summary (`summary`, text): The new summary.
- Description (`description`, text): The new details.
- Assignee (`assigneeId`, text): The person to assign it to.
- Priority (`priority`, text): Its priority. One of: `highest`, `high`, `medium`, `low`, `lowest`.
- Impact (`impact`, text): Its impact. One of: `highest`, `high`, `medium`, `low`, `lowest`.
- Due (`dueDate`, date and time): When it is due.
- Issue status (`workItemStatus`, text): Its state. One of: `notStarted` (Not started), `inProgress` (In progress), `remediated`, `accepted`.
- Action plan (`actionPlan`, text): The plan to fix it.
- Closed on (`closedOn`, date and time): When it was closed.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "assigneeId": "example",
    "createdOn": "example",
    "description": "example",
    "dueDate": "example",
    "id": "example",
    "impact": "example",
    "index": 1,
    "priority": "example",
    "sourceId": "example",
    "sourceName": "example",
    "sourceType": "example",
    "status": "example",
    "summary": "example",
    "updatedOn": "example",
    "workItemStatus": "example"
  }
}
```

### Update label

Rename a label, change its description, or archive it.

**Inputs**

- Label (`labelId`, text, required): The label.
- Name (`name`, text): The label's new name.
- Description (`description`, text): The new description.
- Status (`status`, text): Archive the label, or make an archived one active again. One of: `active`, `archived`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "createdOn": "example",
    "description": "example",
    "freshness": "example",
    "id": "example",
    "name": "example",
    "status": "example",
    "updatedOn": "example"
  }
}
```

### Update risk

Change a risk. Only the fields you fill in change.

**Inputs**

- Risk (`riskId`, text, required): The risk.
- Name (`name`, text): The risk's new name.
- Description (`description`, text): The new description.
- Owner (`ownerId`, text): The risk's new owner.
- Category (`category`, text): The risk's category.
- Response (`response`, text): How the risk is being handled. One of: `mitigate`, `accept`, `transfer`, `avoid`, `notSet` (Not set).
- Likelihood level (`likelihoodLevel`, number): Its likelihood, as a position on the register's scale: 0 is the lowest. At least 0.
- Impact level (`impactLevel`, number): Its impact, as a position on the register's scale: 0 is the lowest. At least 0.
- Status (`status`, text): Archive the risk, or make an archived one active again. One of: `active`, `archived`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "category": "example",
    "createdOn": "example",
    "description": "example",
    "health": "example",
    "id": "example",
    "impactLevel": 1,
    "likelihoodLevel": 1,
    "name": "example",
    "ownerId": "example",
    "response": "example",
    "riskIdentifier": "example",
    "riskRegisterId": "example",
    "riskStage": "example",
    "status": "example",
    "toleranceLevel": 1,
    "updatedOn": "example"
  }
}
```

### Update task

Change a task, or move it to another status. Only the fields you fill in change.

**Inputs**

- Task (`taskId`, text, required): The task.
- Title (`title`, text): The new title.
- Description (`description`, text): The new description.
- Assignee (`assigneeId`, text): The person to assign it to.
- Status (`taskStatusId`, text): The status to move it to.
- Priority (`priority`, text): Its priority. One of: `highest`, `high`, `medium`, `low`, `lowest`.
- Due (`dueDate`, date and time): When it is due.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "assigneeId": "example",
    "createdOn": "example",
    "description": "example",
    "dueDate": "example",
    "id": "example",
    "priority": "example",
    "targetId": "example",
    "targetType": "example",
    "taskStatusId": "example",
    "title": "example",
    "updatedOn": "example"
  }
}
```
