# Fieldwire

> Create and update tasks, checklists and comments, and read projects, plans, forms and files in Fieldwire.

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

## Actions

### Add checklist item

Add an item to a task's checklist.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Task (`task_id`, text, required): The task.
- Item (`name`, text, required): What to check, such as Outlets tested.
- Answer (`state`, text): The item's answer: yes, no or not applicable. Leave empty for not answered. One of: `empty` (Not answered), `yes`, `no`, `not_applicable` (Not applicable).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "creator_user_id": 1,
    "id": "example",
    "last_editor_user_id": 1,
    "name": "example",
    "project_id": "example",
    "state": "example",
    "task_id": "example",
    "updated_at": "example"
  }
}
```

### Add task comment

Post a comment on a task. Everyone following the task sees it.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Task (`task_id`, text, required): The task.
- Comment (`text`, text, required): The comment.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content": "example",
    "created_at": "example",
    "file_name": "example",
    "file_url": "example",
    "id": "example",
    "kind": 1,
    "project_id": "example",
    "task_id": "example",
    "thumb_url": "example",
    "updated_at": "example",
    "user_id": 1
  }
}
```

### Create category

Add a task category to a project.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Name (`name`, text, required): The category's name, such as Electrical.
- Short name (`handle`, text, required): A short form of the name, such as ELEC.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "handle": "example",
    "id": "example",
    "name": "example",
    "project_id": "example",
    "updated_at": "example"
  }
}
```

### Create location

Add a location, such as a floor, room or unit, to a project.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Name (`name`, text, required): The location's name. It must differ from the other locations under the same parent.
- Inside (`parent_location_id`, text): The location this one sits inside, such as the floor a room is on. It can't be changed later.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "id": "example",
    "location_id": "example",
    "name": "example",
    "project_id": "example",
    "updated_at": "example"
  }
}
```

### Create project

Create a Fieldwire project. You become its owner.

**Inputs**

- Name (`name`, text, required): The project's name.
- Code (`code`, text): Your own code or number for the project.
- Address (`address`, text): The site's address.
- Time zone (`time_zone`, text): The project's time zone. One of: `Etc/GMT+12`, `Pacific/Midway`, `Pacific/Pago_Pago` (Pacific/Pago Pago), `Pacific/Honolulu`, `America/Juneau`, `America/Los_Angeles` (America/Los Angeles), `America/Tijuana`, `America/Denver`, `America/Phoenix`, `America/Chihuahua`, and 126 more.
- Units (`measurement_units`, text): Whether plans measure in imperial or metric units. One of: `imperial`, `metric`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "address": "example",
    "archived_at": "example",
    "code": "example",
    "color": "example",
    "created_at": "example",
    "currency": "example",
    "deleted_at": "example",
    "id": "example",
    "name": "example",
    "owner_email": "example",
    "plan_name": "example",
    "time_zone": "example",
    "updated_at": "example"
  }
}
```

### Create task

Create a task in a project, such as a punch list item or an inspection to do.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Task name (`name`, text, required): What needs doing, such as Fix the drywall in unit 204.
- Assignee (`assignee_id`, text): Who the task is assigned to. Leave empty to assign it to yourself.
- Status (`status_id`, text): The task's status, from the project's statuses.
- Category (`category_id`, text): The task's category, such as Electrical or Plumbing.
- Location (`location_id`, text): Where on the site the task is, from the project's locations.
- Priority (`priority`, number): How urgent the task is. Leave empty for priority 2. One of: `1` (Priority 1 (highest)), `2` (Priority 2), `3` (Priority 3 (lowest)).
- Due date (`due_date`, date): The date the task is due.
- Start (`start_at`, date and time): When work on the task starts.
- End (`end_at`, date and time): When work on the task ends.
- Cost (`cost_value`, number): The task's cost, in the project's currency. At least 0.
- Manpower (`man_power_value`, number): The effort the task takes, in the project's manpower units. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cost_value": 1,
    "created_at": "example",
    "creator_user_id": 1,
    "deleted_at": "example",
    "due_at": "example",
    "due_date": "example",
    "end_at": "example",
    "fixed_at": "example",
    "floorplan_id": "example",
    "id": "example",
    "is_private": true,
    "last_editor_user_id": 1,
    "location_id": "example",
    "man_power_value": 1,
    "name": "example",
    "owner_user_id": 1,
    "priority": 1,
    "project_id": "example",
    "sequence_number": 1,
    "start_at": "example",
    "status_id": "example",
    "team_id": "example",
    "updated_at": "example",
    "user_ids": [
      1
    ],
    "verified_at": "example"
  }
}
```

### Delete checklist item

Remove an item from a task's checklist.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Task (`task_id`, text): The task the item is on, to choose the item from.
- Checklist item (`check_item_id`, text, required): The checklist item.

**Outputs**

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

**Example output**

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

### Delete project

Delete a project with everything in it: its tasks, plans, forms and files.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.

**Outputs**

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

**Example output**

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

### Delete task

Delete a task from its project.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Task (`task_id`, text, required): The task.

**Outputs**

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

**Example output**

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

### Get project

Get a project's name, code, address, time zone and plan.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "address": "example",
    "archived_at": "example",
    "code": "example",
    "color": "example",
    "created_at": "example",
    "currency": "example",
    "deleted_at": "example",
    "id": "example",
    "name": "example",
    "owner_email": "example",
    "plan_name": "example",
    "time_zone": "example",
    "updated_at": "example"
  }
}
```

### Get task

Get a task with its status, assignee, category, location and dates.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Task (`task_id`, text, required): The task.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cost_value": 1,
    "created_at": "example",
    "creator_user_id": 1,
    "deleted_at": "example",
    "due_at": "example",
    "due_date": "example",
    "end_at": "example",
    "fixed_at": "example",
    "floorplan_id": "example",
    "id": "example",
    "is_private": true,
    "last_editor_user_id": 1,
    "location_id": "example",
    "man_power_value": 1,
    "name": "example",
    "owner_user_id": 1,
    "priority": 1,
    "project_id": "example",
    "sequence_number": 1,
    "start_at": "example",
    "status_id": "example",
    "team_id": "example",
    "updated_at": "example",
    "user_ids": [
      1
    ],
    "verified_at": "example"
  }
}
```

### List account users

List everyone on your Fieldwire account, with how many projects each is in.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "projects": 1,
        "user": {
          "account_role": "example",
          "company": "example",
          "current_sign_in_at": "example",
          "email": "example",
          "first_name": "example",
          "id": 1,
          "is_confirmed": true,
          "job_title": "example",
          "last_name": "example"
        }
      }
    ]
  }
}
```

### List attachments

List a project's files, photos and videos, with links to download them.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Limit (`limit`, number): How many attachments to return, up to 1000. Fieldwire's default is 50. From 1 to 1000.
- Changed since (`updated_since`, date and time): Only attachments added or changed after this time. To read the next page, use the next_synced_at value a previous list step returned.
- Kinds (`kinds`, list): Only these kinds. Leave empty for all. One or more of: `file`, `photo`, `video`, `photo_sphere` (360° photo).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "has_more": true,
    "items": [
      {
        "created_at": "example",
        "file_size": 1,
        "file_url": "example",
        "folder_id": "example",
        "id": "example",
        "kind": "example",
        "name": "example",
        "origin": "example",
        "original_url": "example",
        "project_id": "example",
        "thumb_url": "example",
        "updated_at": "example"
      }
    ],
    "next_synced_at": "example"
  }
}
```

### List categories

List a project's task categories, such as Electrical or Plumbing.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Limit (`limit`, number): How many categories to return, up to 1000. Fieldwire's default is 50. From 1 to 1000.
- Changed since (`updated_since`, date and time): Only categories added or changed after this time. To read the next page, use the next_synced_at value a previous list step returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "has_more": true,
    "items": [
      {
        "created_at": "example",
        "handle": "example",
        "id": "example",
        "name": "example",
        "project_id": "example",
        "updated_at": "example"
      }
    ],
    "next_synced_at": "example"
  }
}
```

### List checklist items

List the checklist items on a task, with their answers.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Task (`task_id`, text, required): The task.
- Limit (`limit`, number): How many checklist items to return, up to 1000. Fieldwire's default is 50. From 1 to 1000.
- Changed since (`updated_since`, date and time): Only checklist items added or changed after this time. To read the next page, use the next_synced_at value a previous list step returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "has_more": true,
    "items": [
      {
        "created_at": "example",
        "creator_user_id": 1,
        "id": "example",
        "last_editor_user_id": 1,
        "name": "example",
        "project_id": "example",
        "state": "example",
        "task_id": "example",
        "updated_at": "example"
      }
    ],
    "next_synced_at": "example"
  }
}
```

### List forms

List a project's forms, such as daily reports and inspections, with the oldest change first.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Limit (`limit`, number): How many forms to return, up to 1000. Fieldwire's default is 50. From 1 to 1000.
- Changed since (`updated_since`, date and time): Only forms added or changed after this time. To read the next page, use the next_synced_at value a previous list step returned.
- Name contains (`name_contains`, text): Only forms whose name contains this text.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "has_more": true,
    "items": [
      {
        "created_at": "example",
        "creator_user_id": 1,
        "due_date": "example",
        "end_at": "example",
        "form_template_form_status_id": "example",
        "form_template_id": "example",
        "id": "example",
        "kind": "example",
        "name": "example",
        "owner_user_id": 1,
        "project_id": "example",
        "sequence_number": 1,
        "start_at": "example",
        "updated_at": "example"
      }
    ],
    "next_synced_at": "example"
  }
}
```

### List locations

List a project's locations, such as floors, rooms or units.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Limit (`limit`, number): How many locations to return, up to 1000. Fieldwire's default is 50. From 1 to 1000.
- Changed since (`updated_since`, date and time): Only locations added or changed after this time. To read the next page, use the next_synced_at value a previous list step returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "has_more": true,
    "items": [
      {
        "created_at": "example",
        "id": "example",
        "location_id": "example",
        "name": "example",
        "project_id": "example",
        "updated_at": "example"
      }
    ],
    "next_synced_at": "example"
  }
}
```

### List plan sheets

List a project's plan sheets, with links to their images.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Limit (`limit`, number): How many sheets to return, up to 1000. Fieldwire's default is 50. From 1 to 1000.
- Changed since (`updated_since`, date and time): Only sheets added or changed after this time. To read the next page, use the next_synced_at value a previous list step returned.
- Name contains (`name_contains`, text): Only sheets whose name contains this text.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "has_more": true,
    "items": [
      {
        "created_at": "example",
        "file_name": "example",
        "file_url": "example",
        "floorplan_id": "example",
        "folder_id": "example",
        "id": "example",
        "name": "example",
        "original_url": "example",
        "project_id": "example",
        "thumb_url": "example",
        "updated_at": "example",
        "version": 1,
        "version_description": "example"
      }
    ],
    "next_synced_at": "example"
  }
}
```

### List project members

List the people in a project, with their role. Needs an account owner's or manager's API token.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "company": "example",
        "email": "example",
        "first_name": "example",
        "id": 1,
        "is_admin": true,
        "is_confirmed": true,
        "job_title": "example",
        "last_name": "example",
        "phone_number": "example",
        "project_id": "example",
        "role": "example"
      }
    ]
  }
}
```

### List projects

List the active projects you can open in Fieldwire, with the oldest change first.

**Inputs**

- Limit (`limit`, number): How many projects to return, up to 1000. Fieldwire's default is 50. From 1 to 1000.
- Changed since (`updated_since`, date and time): Only projects added or changed after this time. To read the next page, use the next_synced_at value a previous list step returned.
- Name contains (`name_contains`, text): Only projects whose name contains this text.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "has_more": true,
    "items": [
      {
        "account_id": 1,
        "address": "example",
        "archived_at": "example",
        "code": "example",
        "color": "example",
        "created_at": "example",
        "currency": "example",
        "deleted_at": "example",
        "id": "example",
        "name": "example",
        "owner_email": "example",
        "plan_name": "example",
        "time_zone": "example",
        "updated_at": "example"
      }
    ],
    "next_synced_at": "example"
  }
}
```

### List statuses

List the statuses a project's tasks can be in, in order.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "color": "example",
        "created_at": "example",
        "id": "example",
        "is_default": true,
        "kind": "example",
        "name": "example",
        "ordinal": 1,
        "project_id": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List task comments

List a task's comments, photos and files, oldest first. Each has a type: comment, photo, file, video and so on.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Task (`task_id`, text, required): The task.
- Limit (`limit`, number): How many comments to return, up to 1000. Fieldwire's default is 50. From 1 to 1000.
- Changed since (`updated_since`, date and time): Only comments added or changed after this time. To read the next page, use the next_synced_at value a previous list step returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "has_more": true,
    "items": [
      {
        "content": "example",
        "created_at": "example",
        "file_name": "example",
        "file_url": "example",
        "id": "example",
        "kind": 1,
        "project_id": "example",
        "task_id": "example",
        "thumb_url": "example",
        "type": "example",
        "updated_at": "example",
        "user_id": 1
      }
    ],
    "next_synced_at": "example"
  }
}
```

### List tasks

List a project's tasks, with the oldest change first, optionally only those with a status, category, location or assignee.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Limit (`limit`, number): How many tasks to return, up to 1000. Fieldwire's default is 50. From 1 to 1000.
- Changed since (`updated_since`, date and time): Only tasks added or changed after this time. To read the next page, use the next_synced_at value a previous list step returned.
- Status (`status_id`, text): Only tasks in this status.
- Category (`category_id`, text): Only tasks in this category.
- Location (`location_id`, text): Only tasks at this location.
- Assignee (`assignee_id`, text): Only tasks assigned to this person.
- Name contains (`name_contains`, text): Only tasks whose name contains this text.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "has_more": true,
    "items": [
      {
        "cost_value": 1,
        "created_at": "example",
        "creator_user_id": 1,
        "deleted_at": "example",
        "due_at": "example",
        "due_date": "example",
        "end_at": "example",
        "fixed_at": "example",
        "floorplan_id": "example",
        "id": "example",
        "is_private": true,
        "last_editor_user_id": 1,
        "location_id": "example",
        "man_power_value": 1,
        "name": "example",
        "owner_user_id": 1,
        "priority": 1,
        "project_id": "example",
        "sequence_number": 1,
        "start_at": "example",
        "status_id": "example",
        "team_id": "example",
        "updated_at": "example",
        "user_ids": [
          1
        ],
        "verified_at": "example"
      }
    ],
    "next_synced_at": "example"
  }
}
```

### Update checklist item

Answer a checklist item yes, no or not applicable, or rename it.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Task (`task_id`, text): The task the item is on, to choose the item from.
- Checklist item (`check_item_id`, text, required): The checklist item.
- Item (`name`, text): A new wording for the item.
- Answer (`state`, text): The item's answer: yes, no or not applicable. Leave empty for not answered. One of: `empty` (Not answered), `yes`, `no`, `not_applicable` (Not applicable).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "creator_user_id": 1,
    "id": "example",
    "last_editor_user_id": 1,
    "name": "example",
    "project_id": "example",
    "state": "example",
    "task_id": "example",
    "updated_at": "example"
  }
}
```

### Update task

Change a task's name, assignee, status, category, location, priority or dates. Anything left empty stays as it is.

**Inputs**

- Project (`project_id`, text, required): The Fieldwire project.
- Task (`task_id`, text, required): The task.
- Task name (`name`, text): What needs doing, such as Fix the drywall in unit 204.
- Assignee (`assignee_id`, text): Who the task is assigned to.
- Status (`status_id`, text): The task's status, from the project's statuses.
- Category (`category_id`, text): The task's category, such as Electrical or Plumbing.
- Location (`location_id`, text): Where on the site the task is, from the project's locations.
- Priority (`priority`, number): How urgent the task is. One of: `1` (Priority 1 (highest)), `2` (Priority 2), `3` (Priority 3 (lowest)).
- Due date (`due_date`, date): The date the task is due.
- Start (`start_at`, date and time): When work on the task starts.
- End (`end_at`, date and time): When work on the task ends.
- Cost (`cost_value`, number): The task's cost, in the project's currency. At least 0.
- Manpower (`man_power_value`, number): The effort the task takes, in the project's manpower units. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cost_value": 1,
    "created_at": "example",
    "creator_user_id": 1,
    "deleted_at": "example",
    "due_at": "example",
    "due_date": "example",
    "end_at": "example",
    "fixed_at": "example",
    "floorplan_id": "example",
    "id": "example",
    "is_private": true,
    "last_editor_user_id": 1,
    "location_id": "example",
    "man_power_value": 1,
    "name": "example",
    "owner_user_id": 1,
    "priority": 1,
    "project_id": "example",
    "sequence_number": 1,
    "start_at": "example",
    "status_id": "example",
    "team_id": "example",
    "updated_at": "example",
    "user_ids": [
      1
    ],
    "verified_at": "example"
  }
}
```
