# airfocus

> Manage product roadmap items, their statuses and comments in airfocus workspaces.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/airfocus

## Actions

### Add comment

Comment on an item.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Item ID (`item_id`, text, required): The item's ID, from List items or a trigger.
- Comment (`text`, text, required): The comment, in Markdown.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content": {},
    "createdAt": "example",
    "id": "example",
    "initiator": {},
    "itemId": "example",
    "lastUpdatedAt": "example",
    "reactions": [
      {}
    ]
  }
}
```

### Create item

Create an item in a workspace.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Name (`name`, text, required): The item's name.
- Description (`description`, text): The item's description, in Markdown.
- Status (`status_id`, text): The item's status, one of the workspace's statuses.
- Assignees (`assignee_user_ids`, list): The people the item is assigned to.
- Color (`color`, text): The item's color. One of: `blue`, `azure`, `sky`, `ocean`, `emerald`, `leaf`, `moss`, `great` (Green), `yellow`, `amber`, and 10 more.
- Custom fields (`custom_fields`, object): Values for the workspace's custom fields, keyed by field ID, such as `{"<field id>": {"number": 42}}`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "_embedded": {
      "alias": "example",
      "attachmentCount": 1,
      "children": [
        {}
      ],
      "commentCount": 1,
      "linkCount": 1,
      "parents": [
        {}
      ],
      "watched": true
    },
    "archived": true,
    "assigneeUserGroupIds": [
      "example"
    ],
    "assigneeUserIds": [
      "example"
    ],
    "color": "example",
    "createdAt": "example",
    "description": {
      "markdown": "example"
    },
    "fields": {},
    "id": "example",
    "lastUpdatedAt": "example",
    "name": "example",
    "number": 1,
    "order": 1,
    "statusCategoryUpdatedAt": "example",
    "statusId": "example",
    "statusUpdatedAt": "example",
    "workspaceId": "example"
  }
}
```

### Create workspace

Create a workspace in the team.

**Inputs**

- Name (`name`, text, required): The workspace's name.
- Description (`description`, text): What the workspace is for, in Markdown.
- Item type (`item_type`, text): What kind of items the workspace holds. One of: `feature`, `idea`, `epic`, `story`, `task`, `bug`, `initiative`, `project`, `product`, `opportunity`, `experiment`, `feedback`.
- Alias (`alias`, text): A short prefix for item numbers, such as `DEV` for DEV-12.
- Item color (`item_color`, text): The color new items get. One of: `blue`, `azure`, `sky`, `ocean`, `emerald`, `leaf`, `moss`, `great` (Green), `yellow`, `amber`, and 10 more.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "_embedded": {},
    "alias": "example",
    "createdAt": "example",
    "description": {},
    "id": "example",
    "itemColor": "example",
    "itemType": "example",
    "lastActivity": "example",
    "lastUpdatedAt": "example",
    "name": "example",
    "order": 1,
    "progressMode": "example",
    "teamId": "example"
  }
}
```

### Delete comment

Delete a comment.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Comment ID (`comment_id`, text, required): The comment's ID, from List comments or Add comment.

**Outputs**

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

**Example output**

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

### Delete item

Delete an item.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Item ID (`item_id`, text, required): The item's ID, from List items or a trigger.

**Outputs**

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

**Example output**

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

### Delete item link

Remove a link between two items.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Link ID (`link_id`, text, required): The link's ID, from Link items.

**Outputs**

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

**Example output**

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

### Delete workspace

Delete a workspace and every item in it.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.

**Outputs**

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

**Example output**

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

### Get current user

Get the airfocus user the API key belongs to.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "disabled": true,
    "email": "example",
    "emailVerified": true,
    "fullName": "example",
    "isTeamCreator": true,
    "lastSeenAt": "example",
    "role": "admin",
    "teamId": "example",
    "updatedAt": "example",
    "userId": "example"
  }
}
```

### Get item

Get an item, with its description in Markdown.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Item ID (`item_id`, text, required): The item's ID, from List items or a trigger.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "_embedded": {
      "alias": "example",
      "attachmentCount": 1,
      "children": [
        {}
      ],
      "commentCount": 1,
      "linkCount": 1,
      "parents": [
        {}
      ],
      "watched": true
    },
    "archived": true,
    "assigneeUserGroupIds": [
      "example"
    ],
    "assigneeUserIds": [
      "example"
    ],
    "color": "example",
    "createdAt": "example",
    "description": {
      "markdown": "example"
    },
    "fields": {},
    "id": "example",
    "lastUpdatedAt": "example",
    "name": "example",
    "number": 1,
    "order": 1,
    "statusCategoryUpdatedAt": "example",
    "statusId": "example",
    "statusUpdatedAt": "example",
    "workspaceId": "example"
  }
}
```

### Get item by key

Get an item by its key, such as DEV-123, from any workspace.

**Inputs**

- Item key (`alias`, text, required): The item's key: its workspace's alias and number, such as `DEV-123`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "_embedded": {
      "alias": "example",
      "attachmentCount": 1,
      "children": [
        {}
      ],
      "commentCount": 1,
      "linkCount": 1,
      "parents": [
        {}
      ],
      "watched": true
    },
    "archived": true,
    "assigneeUserGroupIds": [
      "example"
    ],
    "assigneeUserIds": [
      "example"
    ],
    "color": "example",
    "createdAt": "example",
    "description": {
      "markdown": "example"
    },
    "fields": {},
    "id": "example",
    "lastUpdatedAt": "example",
    "name": "example",
    "number": 1,
    "order": 1,
    "statusCategoryUpdatedAt": "example",
    "statusId": "example",
    "statusUpdatedAt": "example",
    "workspaceId": "example"
  }
}
```

### Get team

Get the airfocus team the API key's user belongs to.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "name": "example",
    "slug": "example",
    "state": {},
    "teamId": "example",
    "updatedAt": "example"
  }
}
```

### Get workspace

Get a workspace with its statuses, fields and views.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "_embedded": {},
    "alias": "example",
    "createdAt": "example",
    "description": {},
    "id": "example",
    "itemColor": "example",
    "itemType": "example",
    "lastActivity": "example",
    "lastUpdatedAt": "example",
    "name": "example",
    "order": 1,
    "progressMode": "example",
    "teamId": "example"
  }
}
```

### Link items

Link one item to another, such as one that blocks another.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- From item ID (`item_id`, text, required): The item's ID, from List items or a trigger.
- To item ID (`to_item_id`, text, required): The ID of the item to link to.
- Link type (`link_type_id`, text, required): The kind of link.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "fromItemId": "example",
    "fromOrder": 1,
    "id": "example",
    "toItemId": "example",
    "toOrder": 1,
    "typeId": "example"
  }
}
```

### List comments

List the comments on an item.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Item ID (`item_id`, text, required): The item's ID, from List items or a trigger.
- Offset (`offset`, number): How many to skip, for the next page. At least 0. Default: `0`.
- Limit (`limit`, number): How many to return. From 1 to 1000. Default: `50`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "content": {},
        "createdAt": "example",
        "id": "example",
        "initiator": {},
        "itemId": "example",
        "lastUpdatedAt": "example",
        "reactions": [
          {}
        ]
      }
    ],
    "totalItems": 1
  }
}
```

### List items

List or search the items in a workspace.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Name (`name`, text): Part of the item name to look for.
- Statuses (`status_ids`, list): Only items in these statuses.
- Updated since (`updated_since`, date and time): Only items changed since this time.
- Archived (`archived`, true/false): List archived items instead of active ones.
- Sort (`sort`, text): The order to list them in. One of: `lastUpdatedAt` (Recently updated first), `createdAt` (Newest first), `name` (Name (A to Z)), `order` (Board order). Default: `lastUpdatedAt`.
- Offset (`offset`, number): How many to skip, for the next page. At least 0. Default: `0`.
- Limit (`limit`, number): How many to return. From 1 to 1000. Default: `50`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "_embedded": {
          "alias": "example",
          "attachmentCount": 1,
          "children": [
            {}
          ],
          "commentCount": 1,
          "linkCount": 1,
          "parents": [
            {}
          ],
          "watched": true
        },
        "archived": true,
        "assigneeUserGroupIds": [
          "example"
        ],
        "assigneeUserIds": [
          "example"
        ],
        "color": "example",
        "createdAt": "example",
        "description": {
          "markdown": "example"
        },
        "fields": {},
        "id": "example",
        "lastUpdatedAt": "example",
        "name": "example",
        "number": 1,
        "order": 1,
        "statusCategoryUpdatedAt": "example",
        "statusId": "example",
        "statusUpdatedAt": "example",
        "workspaceId": "example"
      }
    ],
    "totalItems": 1
  }
}
```

### List link types

List the kinds of link the team uses between items, such as Blocks or Relates to.

**Inputs**

- Name (`name`, text): Part of the link type's name to look for.
- Offset (`offset`, number): How many to skip, for the next page. At least 0. Default: `0`.
- Limit (`limit`, number): How many to return. From 1 to 1000. Default: `50`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "backwardsName": "example",
        "id": "example",
        "name": "example",
        "teamId": "example"
      }
    ],
    "totalItems": 1
  }
}
```

### List statuses

List a workspace's statuses, in board order.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "statuses": [
      {
        "category": "draft",
        "color": "example",
        "default": true,
        "id": "example",
        "name": "example",
        "order": 1,
        "workspaceId": "example"
      }
    ]
  }
}
```

### List users

List the people in the team, optionally only those matching a name or email.

**Inputs**

- Search (`query`, text): Part of a name or email to look for.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "createdAt": "example",
      "disabled": true,
      "email": "example",
      "emailVerified": true,
      "fullName": "example",
      "isTeamCreator": true,
      "lastSeenAt": "example",
      "role": "admin",
      "teamId": "example",
      "updatedAt": "example",
      "userId": "example"
    }
  ]
}
```

### List workspaces

List the workspaces the API key's user can see, most recently active first.

**Inputs**

- Name (`name`, text): Part of the workspace name to look for.
- Archived (`archived`, true/false): List archived workspaces instead of active ones.
- Offset (`offset`, number): How many to skip, for the next page. At least 0. Default: `0`.
- Limit (`limit`, number): How many to return. From 1 to 1000. Default: `50`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "_embedded": {},
        "alias": "example",
        "createdAt": "example",
        "description": {},
        "id": "example",
        "itemColor": "example",
        "itemType": "example",
        "lastActivity": "example",
        "lastUpdatedAt": "example",
        "name": "example",
        "order": 1,
        "progressMode": "example",
        "teamId": "example"
      }
    ],
    "totalItems": 1
  }
}
```

### Move item

Move an item to another workspace. airfocus gives it a new ID there.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Item ID (`item_id`, text, required): The item's ID, from List items or a trigger.
- Move to workspace (`target_workspace_id`, text, required): The workspace to move it to.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "item_ids": [
      "example"
    ]
  }
}
```

### Stop watching item

Stop airfocus notifications about an item, for the API key's user.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Item ID (`item_id`, text, required): The item's ID, from List items or a trigger.

**Outputs**

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

**Example output**

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

### Update comment

Change a comment's text.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Comment ID (`comment_id`, text, required): The comment's ID, from List comments or Add comment.
- Comment (`text`, text, required): The comment's new text, in Markdown.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content": {},
    "createdAt": "example",
    "id": "example",
    "initiator": {},
    "itemId": "example",
    "lastUpdatedAt": "example",
    "reactions": [
      {}
    ]
  }
}
```

### Update item

Change an item's name, description, status, assignees, color or archived state.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Item ID (`item_id`, text, required): The item's ID, from List items or a trigger.
- Name (`name`, text): The item's new name.
- Description (`description`, text): The item's description, in Markdown.
- Status (`status_id`, text): The item's status, one of the workspace's statuses.
- Assignees (`assignee_user_ids`, list): The people the item is assigned to.
- Color (`color`, text): The item's color. One of: `blue`, `azure`, `sky`, `ocean`, `emerald`, `leaf`, `moss`, `great` (Green), `yellow`, `amber`, and 10 more.
- Archived (`archived`, true/false): Archive the item, or bring it back from the archive.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "_embedded": {
      "alias": "example",
      "attachmentCount": 1,
      "children": [
        {}
      ],
      "commentCount": 1,
      "linkCount": 1,
      "parents": [
        {}
      ],
      "watched": true
    },
    "archived": true,
    "assigneeUserGroupIds": [
      "example"
    ],
    "assigneeUserIds": [
      "example"
    ],
    "color": "example",
    "createdAt": "example",
    "description": {
      "markdown": "example"
    },
    "fields": {},
    "id": "example",
    "lastUpdatedAt": "example",
    "name": "example",
    "number": 1,
    "order": 1,
    "statusCategoryUpdatedAt": "example",
    "statusId": "example",
    "statusUpdatedAt": "example",
    "workspaceId": "example"
  }
}
```

### Watch item

Get airfocus notifications about an item's changes, as the API key's user.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Item ID (`item_id`, text, required): The item's ID, from List items or a trigger.

**Outputs**

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

**Example output**

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