# Kayako

> Open, update and reply to support cases, and manage customers and organizations.

App · 23 actions. Web page: https://docs.lodol.com/docs/integrations/kayako

## Actions

### Add note to case

Add an internal note to a case, seen only by agents.

**Inputs**

- Case ID (`case_id`, number, required): The case's ID, from List cases or a trigger.
- Note (`contents`, text, required): The note.
- HTML note (`is_html`, true/false): The note is HTML. Default: `false`.
- Status (`status_id`, number): The case's status.
- Priority (`priority_id`, number): The case's priority.
- Team (`assigned_team_id`, number): The team the case is assigned to.
- Agent (`assigned_agent_id`, number): The agent the case is assigned to.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "case": {
        "assigned_agent": {
          "id": 1,
          "resource_type": "example"
        },
        "assigned_team": {
          "id": 1,
          "resource_type": "example"
        },
        "brand": {
          "id": 1,
          "resource_type": "example"
        },
        "created_at": "example",
        "creator": {
          "id": 1,
          "resource_type": "example"
        },
        "custom_fields": [
          {
            "field": {
              "id": 1,
              "resource_type": "example"
            },
            "value": "example"
          }
        ],
        "form": {
          "id": 1,
          "resource_type": "example"
        },
        "has_attachments": true,
        "has_notes": true,
        "id": 1,
        "is_merged": true,
        "last_agent_activity_at": "example",
        "last_closed_at": "example",
        "last_completed_at": "example",
        "last_customer_activity_at": "example",
        "last_post_preview": "example",
        "last_post_status": "example",
        "last_post_type": "example",
        "last_replied_at": "example",
        "legacy_id": "example",
        "portal": "example",
        "post_count": 1,
        "priority": {
          "id": 1,
          "resource_type": "example"
        },
        "rating": "example",
        "rating_status": "example",
        "requester": {
          "id": 1,
          "resource_type": "example"
        },
        "resource_url": "example",
        "state": "example",
        "status": {
          "id": 1,
          "resource_type": "example"
        },
        "subject": "example",
        "type": {
          "id": 1,
          "resource_type": "example"
        },
        "updated_at": "example"
      },
      "posts": [
        {
          "contents": "example",
          "created_at": "example",
          "creator": {
            "id": 1,
            "resource_type": "example"
          },
          "id": 1,
          "identity": {
            "id": 1,
            "resource_type": "example"
          },
          "original": {
            "id": 1,
            "resource_type": "example"
          },
          "post_status": "example",
          "source": "example",
          "subject": "example",
          "updated_at": "example",
          "uuid": "example"
        }
      ]
    },
    "resource": "example",
    "status": 1
  }
}
```

### Add note to user

Add an internal note to a user's profile.

**Inputs**

- User ID (`kayako_user_id`, number, required): The user's ID, from List users or a trigger.
- Note (`contents`, text, required): The note.
- HTML note (`is_html`, true/false): The note is HTML.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "body_html": "example",
      "body_text": "example",
      "created_at": "example",
      "id": 1,
      "is_pinned": true,
      "updated_at": "example",
      "user": {
        "id": 1,
        "resource_type": "example"
      }
    },
    "resource": "example",
    "status": 1
  }
}
```

### Add tags to case

Add tags to a case, keeping the ones it has.

**Inputs**

- Case ID (`case_id`, number, required): The case's ID, from List cases or a trigger.
- Tags (`tags`, list, required): The tags to add.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "limit": 1,
    "offset": 1,
    "resource": "example",
    "status": 1,
    "total_count": 1
  }
}
```

### Create case

Open a case for a requester, by email to them or as an internal note.

**Inputs**

- Subject (`subject`, text, required): The case's subject.
- Message (`contents`, text, required): The first message of the case.
- Requester ID (`requester_id`, number, required): The ID of the customer the case is for, from List users or Create user.
- Send as (`channel`, text): Email the message to the requester, or keep it as an internal note. One of: `MAIL` (Email), `NOTE` (Internal note). Default: `MAIL`.
- Mailbox (`mailbox_id`, number): The mailbox to email from. Leave empty for your default mailbox.
- HTML message (`is_html`, true/false): The message is HTML. Default: `false`.
- Status (`status_id`, number): The case's status.
- Priority (`priority_id`, number): The case's priority.
- Type (`type_id`, number): The case's type.
- Team (`assigned_team_id`, number): The team the case is assigned to.
- Agent (`assigned_agent_id`, number): The agent the case is assigned to.
- Tags (`tags`, list): Tags, each a word or phrase.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assigned_agent": {
        "id": 1,
        "resource_type": "example"
      },
      "assigned_team": {
        "id": 1,
        "resource_type": "example"
      },
      "brand": {
        "id": 1,
        "resource_type": "example"
      },
      "created_at": "example",
      "creator": {
        "id": 1,
        "resource_type": "example"
      },
      "custom_fields": [
        {
          "field": {
            "id": 1,
            "resource_type": "example"
          },
          "value": "example"
        }
      ],
      "form": {
        "id": 1,
        "resource_type": "example"
      },
      "has_attachments": true,
      "has_notes": true,
      "id": 1,
      "is_merged": true,
      "last_agent_activity_at": "example",
      "last_closed_at": "example",
      "last_completed_at": "example",
      "last_customer_activity_at": "example",
      "last_post_preview": "example",
      "last_post_status": "example",
      "last_post_type": "example",
      "last_replied_at": "example",
      "legacy_id": "example",
      "portal": "example",
      "post_count": 1,
      "priority": {
        "id": 1,
        "resource_type": "example"
      },
      "rating": "example",
      "rating_status": "example",
      "requester": {
        "id": 1,
        "resource_type": "example"
      },
      "resource_url": "example",
      "state": "example",
      "status": {
        "id": 1,
        "resource_type": "example"
      },
      "subject": "example",
      "type": {
        "id": 1,
        "resource_type": "example"
      },
      "updated_at": "example"
    },
    "resource": "example",
    "status": 1
  }
}
```

### Create organization

Add an organization.

**Inputs**

- Name (`name`, text, required): The organization's name.
- Domains (`domains`, list): Email domains whose people belong to it, such as example.com.
- Shared (`is_shared`, true/false): Let its members see each other's cases.
- Tags (`tags`, list): Tags, each a word or phrase.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "custom_fields": [
        {
          "field": {
            "id": 1,
            "resource_type": "example"
          },
          "value": "example"
        }
      ],
      "domains": [
        {
          "id": 1,
          "resource_type": "example"
        }
      ],
      "id": 1,
      "is_shared": true,
      "legacy_id": "example",
      "name": "example",
      "pinned_notes_count": 1,
      "updated_at": "example"
    },
    "resource": "example",
    "status": 1
  }
}
```

### Create user

Add a customer or a team member.

**Inputs**

- Full name (`full_name`, text, required): The person's full name.
- Kind (`role`, text): What kind of person this is. One of: `CUSTOMER`, `COLLABORATOR`, `AGENT`, `ADMIN`. Default: `CUSTOMER`.
- Custom role (`role_id`, number): A role of your own to give them instead, such as a custom agent role.
- Email (`email`, text): The person's email address. Needed for agents, admins and collaborators.
- Job title (`designation`, text): The person's job title.
- Teams (`team_ids`, list): The teams of an agent, admin or collaborator. Needed for them.
- Time zone (`time_zone`, text): The person's time zone, such as Europe/London.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "custom_fields": [
        {
          "field": {
            "id": 1,
            "resource_type": "example"
          },
          "value": "example"
        }
      ],
      "designation": "example",
      "emails": [
        {
          "id": 1,
          "resource_type": "example"
        }
      ],
      "full_name": "example",
      "id": 1,
      "is_enabled": true,
      "last_active_at": "example",
      "last_seen_at": "example",
      "legacy_id": "example",
      "locale": "example",
      "organization": {
        "id": 1,
        "resource_type": "example"
      },
      "phones": [
        {
          "id": 1,
          "resource_type": "example"
        }
      ],
      "role": {
        "id": 1,
        "resource_type": "example"
      },
      "teams": [
        {
          "id": 1,
          "resource_type": "example"
        }
      ],
      "time_zone": "example",
      "updated_at": "example",
      "uuid": "example"
    },
    "resource": "example",
    "status": 1
  }
}
```

### Delete organization

Delete an organization.

**Inputs**

- Organization (`organization_id`, number, required): The organization.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "status": 1
  }
}
```

### Delete user

Delete a user.

**Inputs**

- User ID (`kayako_user_id`, number, required): The user's ID, from List users or a trigger.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "status": 1
  }
}
```

### Get case

Get one case.

**Inputs**

- Case ID (`case_id`, number, required): The case's ID, from List cases or a trigger.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assigned_agent": {
        "id": 1,
        "resource_type": "example"
      },
      "assigned_team": {
        "id": 1,
        "resource_type": "example"
      },
      "brand": {
        "id": 1,
        "resource_type": "example"
      },
      "created_at": "example",
      "creator": {
        "id": 1,
        "resource_type": "example"
      },
      "custom_fields": [
        {
          "field": {
            "id": 1,
            "resource_type": "example"
          },
          "value": "example"
        }
      ],
      "form": {
        "id": 1,
        "resource_type": "example"
      },
      "has_attachments": true,
      "has_notes": true,
      "id": 1,
      "is_merged": true,
      "last_agent_activity_at": "example",
      "last_closed_at": "example",
      "last_completed_at": "example",
      "last_customer_activity_at": "example",
      "last_post_preview": "example",
      "last_post_status": "example",
      "last_post_type": "example",
      "last_replied_at": "example",
      "legacy_id": "example",
      "portal": "example",
      "post_count": 1,
      "priority": {
        "id": 1,
        "resource_type": "example"
      },
      "rating": "example",
      "rating_status": "example",
      "requester": {
        "id": 1,
        "resource_type": "example"
      },
      "resource_url": "example",
      "state": "example",
      "status": {
        "id": 1,
        "resource_type": "example"
      },
      "subject": "example",
      "type": {
        "id": 1,
        "resource_type": "example"
      },
      "updated_at": "example"
    },
    "resource": "example",
    "status": 1
  }
}
```

### Get organization

Get one organization.

**Inputs**

- Organization (`organization_id`, number, required): The organization.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "custom_fields": [
        {
          "field": {
            "id": 1,
            "resource_type": "example"
          },
          "value": "example"
        }
      ],
      "domains": [
        {
          "id": 1,
          "resource_type": "example"
        }
      ],
      "id": 1,
      "is_shared": true,
      "legacy_id": "example",
      "name": "example",
      "pinned_notes_count": 1,
      "updated_at": "example"
    },
    "resource": "example",
    "status": 1
  }
}
```

### Get user

Get one user.

**Inputs**

- User ID (`kayako_user_id`, number, required): The user's ID, from List users or a trigger.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "custom_fields": [
        {
          "field": {
            "id": 1,
            "resource_type": "example"
          },
          "value": "example"
        }
      ],
      "designation": "example",
      "emails": [
        {
          "id": 1,
          "resource_type": "example"
        }
      ],
      "full_name": "example",
      "id": 1,
      "is_enabled": true,
      "last_active_at": "example",
      "last_seen_at": "example",
      "legacy_id": "example",
      "locale": "example",
      "organization": {
        "id": 1,
        "resource_type": "example"
      },
      "phones": [
        {
          "id": 1,
          "resource_type": "example"
        }
      ],
      "role": {
        "id": 1,
        "resource_type": "example"
      },
      "teams": [
        {
          "id": 1,
          "resource_type": "example"
        }
      ],
      "time_zone": "example",
      "updated_at": "example",
      "uuid": "example"
    },
    "resource": "example",
    "status": 1
  }
}
```

### List case messages

List a case's messages, newest first.

**Inputs**

- Case ID (`case_id`, number, required): The case's ID, from List cases or a trigger.
- Show (`filters`, text): Which posts to list. One of: `MESSAGES`, `NOTES`, `ALL` (Everything, with activities). Default: `MESSAGES`.
- 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: `25`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "contents": "example",
        "created_at": "example",
        "creator": {
          "id": 1,
          "resource_type": "example"
        },
        "id": 1,
        "identity": {
          "id": 1,
          "resource_type": "example"
        },
        "original": {
          "id": 1,
          "resource_type": "example"
        },
        "post_status": "example",
        "source": "example",
        "subject": "example",
        "updated_at": "example",
        "uuid": "example"
      }
    ],
    "limit": 1,
    "offset": 1,
    "resource": "example",
    "status": 1,
    "total_count": 1
  }
}
```

### List case notes

List the notes on a case, newest first.

**Inputs**

- Case ID (`case_id`, number, required): The case's ID, from List cases 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: `25`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "body_html": "example",
        "body_text": "example",
        "created_at": "example",
        "id": 1,
        "is_pinned": true,
        "updated_at": "example",
        "user": {
          "id": 1,
          "resource_type": "example"
        }
      }
    ],
    "limit": 1,
    "offset": 1,
    "resource": "example",
    "status": 1,
    "total_count": 1
  }
}
```

### List cases

List cases, most recently updated first, with optional filters.

**Inputs**

- Status (`status`, list): Only cases in these kinds of status. One or more of: `NEW`, `OPEN`, `PENDING`, `COMPLETED`, `CLOSED`, `CUSTOM`.
- Tags (`tags`, list): Only cases with these tags.
- Requester email (`requester_email`, text): Only cases from the requester with this email address.
- 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: `25`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "assigned_agent": {
          "id": 1,
          "resource_type": "example"
        },
        "assigned_team": {
          "id": 1,
          "resource_type": "example"
        },
        "brand": {
          "id": 1,
          "resource_type": "example"
        },
        "created_at": "example",
        "creator": {
          "id": 1,
          "resource_type": "example"
        },
        "custom_fields": [
          {
            "field": {
              "id": 1,
              "resource_type": "example"
            },
            "value": "example"
          }
        ],
        "form": {
          "id": 1,
          "resource_type": "example"
        },
        "has_attachments": true,
        "has_notes": true,
        "id": 1,
        "is_merged": true,
        "last_agent_activity_at": "example",
        "last_closed_at": "example",
        "last_completed_at": "example",
        "last_customer_activity_at": "example",
        "last_post_preview": "example",
        "last_post_status": "example",
        "last_post_type": "example",
        "last_replied_at": "example",
        "legacy_id": "example",
        "portal": "example",
        "post_count": 1,
        "priority": {
          "id": 1,
          "resource_type": "example"
        },
        "rating": "example",
        "rating_status": "example",
        "requester": {
          "id": 1,
          "resource_type": "example"
        },
        "resource_url": "example",
        "state": "example",
        "status": {
          "id": 1,
          "resource_type": "example"
        },
        "subject": "example",
        "type": {
          "id": 1,
          "resource_type": "example"
        },
        "updated_at": "example"
      }
    ],
    "limit": 1,
    "offset": 1,
    "resource": "example",
    "status": 1,
    "total_count": 1
  }
}
```

### List organizations

List organizations, oldest first.

**Inputs**

- 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: `25`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "custom_fields": [
          {
            "field": {
              "id": 1,
              "resource_type": "example"
            },
            "value": "example"
          }
        ],
        "domains": [
          {
            "id": 1,
            "resource_type": "example"
          }
        ],
        "id": 1,
        "is_shared": true,
        "legacy_id": "example",
        "name": "example",
        "pinned_notes_count": 1,
        "updated_at": "example"
      }
    ],
    "limit": 1,
    "offset": 1,
    "resource": "example",
    "status": 1,
    "total_count": 1
  }
}
```

### List users

List users, newest first, optionally only one kind.

**Inputs**

- Role (`role`, text): Only users of this kind. One of: `CUSTOMER`, `COLLABORATOR`, `AGENT`, `ADMIN`.
- 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: `25`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "custom_fields": [
          {
            "field": {
              "id": 1,
              "resource_type": "example"
            },
            "value": "example"
          }
        ],
        "designation": "example",
        "emails": [
          {
            "id": 1,
            "resource_type": "example"
          }
        ],
        "full_name": "example",
        "id": 1,
        "is_enabled": true,
        "last_active_at": "example",
        "last_seen_at": "example",
        "legacy_id": "example",
        "locale": "example",
        "organization": {
          "id": 1,
          "resource_type": "example"
        },
        "phones": [
          {
            "id": 1,
            "resource_type": "example"
          }
        ],
        "role": {
          "id": 1,
          "resource_type": "example"
        },
        "teams": [
          {
            "id": 1,
            "resource_type": "example"
          }
        ],
        "time_zone": "example",
        "updated_at": "example",
        "uuid": "example"
      }
    ],
    "limit": 1,
    "offset": 1,
    "resource": "example",
    "status": 1,
    "total_count": 1
  }
}
```

### Move case to trash

Move a case to the trash. Restore case brings it back.

**Inputs**

- Case ID (`case_id`, number, required): The case's ID, from List cases or a trigger.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assigned_agent": {
        "id": 1,
        "resource_type": "example"
      },
      "assigned_team": {
        "id": 1,
        "resource_type": "example"
      },
      "brand": {
        "id": 1,
        "resource_type": "example"
      },
      "created_at": "example",
      "creator": {
        "id": 1,
        "resource_type": "example"
      },
      "custom_fields": [
        {
          "field": {
            "id": 1,
            "resource_type": "example"
          },
          "value": "example"
        }
      ],
      "form": {
        "id": 1,
        "resource_type": "example"
      },
      "has_attachments": true,
      "has_notes": true,
      "id": 1,
      "is_merged": true,
      "last_agent_activity_at": "example",
      "last_closed_at": "example",
      "last_completed_at": "example",
      "last_customer_activity_at": "example",
      "last_post_preview": "example",
      "last_post_status": "example",
      "last_post_type": "example",
      "last_replied_at": "example",
      "legacy_id": "example",
      "portal": "example",
      "post_count": 1,
      "priority": {
        "id": 1,
        "resource_type": "example"
      },
      "rating": "example",
      "rating_status": "example",
      "requester": {
        "id": 1,
        "resource_type": "example"
      },
      "resource_url": "example",
      "state": "example",
      "status": {
        "id": 1,
        "resource_type": "example"
      },
      "subject": "example",
      "type": {
        "id": 1,
        "resource_type": "example"
      },
      "updated_at": "example"
    },
    "resource": "example",
    "status": 1
  }
}
```

### Remove tags from case

Take tags off a case.

**Inputs**

- Case ID (`case_id`, number, required): The case's ID, from List cases or a trigger.
- Tags (`tags`, list, required): The tags to remove.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "limit": 1,
    "offset": 1,
    "resource": "example",
    "status": 1,
    "total_count": 1
  }
}
```

### Reply to case

Email a reply to a case's requester, and optionally change its status or assignment.

**Inputs**

- Case ID (`case_id`, number, required): The case's ID, from List cases or a trigger.
- Reply (`contents`, text, required): The reply.
- Mailbox (`mailbox_id`, number): The mailbox to send the reply from. Leave empty for your default mailbox.
- Cc (`cc`, list): Email addresses to copy on the reply.
- Status (`status_id`, number): The case's status.
- Priority (`priority_id`, number): The case's priority.
- Team (`assigned_team_id`, number): The team the case is assigned to.
- Agent (`assigned_agent_id`, number): The agent the case is assigned to.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "case": {
        "assigned_agent": {
          "id": 1,
          "resource_type": "example"
        },
        "assigned_team": {
          "id": 1,
          "resource_type": "example"
        },
        "brand": {
          "id": 1,
          "resource_type": "example"
        },
        "created_at": "example",
        "creator": {
          "id": 1,
          "resource_type": "example"
        },
        "custom_fields": [
          {
            "field": {
              "id": 1,
              "resource_type": "example"
            },
            "value": "example"
          }
        ],
        "form": {
          "id": 1,
          "resource_type": "example"
        },
        "has_attachments": true,
        "has_notes": true,
        "id": 1,
        "is_merged": true,
        "last_agent_activity_at": "example",
        "last_closed_at": "example",
        "last_completed_at": "example",
        "last_customer_activity_at": "example",
        "last_post_preview": "example",
        "last_post_status": "example",
        "last_post_type": "example",
        "last_replied_at": "example",
        "legacy_id": "example",
        "portal": "example",
        "post_count": 1,
        "priority": {
          "id": 1,
          "resource_type": "example"
        },
        "rating": "example",
        "rating_status": "example",
        "requester": {
          "id": 1,
          "resource_type": "example"
        },
        "resource_url": "example",
        "state": "example",
        "status": {
          "id": 1,
          "resource_type": "example"
        },
        "subject": "example",
        "type": {
          "id": 1,
          "resource_type": "example"
        },
        "updated_at": "example"
      },
      "posts": [
        {
          "contents": "example",
          "created_at": "example",
          "creator": {
            "id": 1,
            "resource_type": "example"
          },
          "id": 1,
          "identity": {
            "id": 1,
            "resource_type": "example"
          },
          "original": {
            "id": 1,
            "resource_type": "example"
          },
          "post_status": "example",
          "source": "example",
          "subject": "example",
          "updated_at": "example",
          "uuid": "example"
        }
      ]
    },
    "resource": "example",
    "status": 1
  }
}
```

### Restore case

Bring a case back from the trash.

**Inputs**

- Case ID (`case_id`, number, required): The case's ID, from List cases or a trigger.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assigned_agent": {
        "id": 1,
        "resource_type": "example"
      },
      "assigned_team": {
        "id": 1,
        "resource_type": "example"
      },
      "brand": {
        "id": 1,
        "resource_type": "example"
      },
      "created_at": "example",
      "creator": {
        "id": 1,
        "resource_type": "example"
      },
      "custom_fields": [
        {
          "field": {
            "id": 1,
            "resource_type": "example"
          },
          "value": "example"
        }
      ],
      "form": {
        "id": 1,
        "resource_type": "example"
      },
      "has_attachments": true,
      "has_notes": true,
      "id": 1,
      "is_merged": true,
      "last_agent_activity_at": "example",
      "last_closed_at": "example",
      "last_completed_at": "example",
      "last_customer_activity_at": "example",
      "last_post_preview": "example",
      "last_post_status": "example",
      "last_post_type": "example",
      "last_replied_at": "example",
      "legacy_id": "example",
      "portal": "example",
      "post_count": 1,
      "priority": {
        "id": 1,
        "resource_type": "example"
      },
      "rating": "example",
      "rating_status": "example",
      "requester": {
        "id": 1,
        "resource_type": "example"
      },
      "resource_url": "example",
      "state": "example",
      "status": {
        "id": 1,
        "resource_type": "example"
      },
      "subject": "example",
      "type": {
        "id": 1,
        "resource_type": "example"
      },
      "updated_at": "example"
    },
    "resource": "example",
    "status": 1
  }
}
```

### Update case

Change a case's subject, requester, status, priority, type, assignment or tags.

**Inputs**

- Case ID (`case_id`, number, required): The case's ID, from List cases or a trigger.
- Subject (`subject`, text): The case's new subject.
- Requester ID (`requester_id`, number): The ID of the customer the case is for.
- Status (`status_id`, number): The case's status.
- Priority (`priority_id`, number): The case's priority.
- Type (`type_id`, number): The case's type.
- Team (`assigned_team_id`, number): The team the case is assigned to.
- Agent (`assigned_agent_id`, number): The agent the case is assigned to.
- Tags (`tags`, list): Tags to replace the case's tags with.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assigned_agent": {
        "id": 1,
        "resource_type": "example"
      },
      "assigned_team": {
        "id": 1,
        "resource_type": "example"
      },
      "brand": {
        "id": 1,
        "resource_type": "example"
      },
      "created_at": "example",
      "creator": {
        "id": 1,
        "resource_type": "example"
      },
      "custom_fields": [
        {
          "field": {
            "id": 1,
            "resource_type": "example"
          },
          "value": "example"
        }
      ],
      "form": {
        "id": 1,
        "resource_type": "example"
      },
      "has_attachments": true,
      "has_notes": true,
      "id": 1,
      "is_merged": true,
      "last_agent_activity_at": "example",
      "last_closed_at": "example",
      "last_completed_at": "example",
      "last_customer_activity_at": "example",
      "last_post_preview": "example",
      "last_post_status": "example",
      "last_post_type": "example",
      "last_replied_at": "example",
      "legacy_id": "example",
      "portal": "example",
      "post_count": 1,
      "priority": {
        "id": 1,
        "resource_type": "example"
      },
      "rating": "example",
      "rating_status": "example",
      "requester": {
        "id": 1,
        "resource_type": "example"
      },
      "resource_url": "example",
      "state": "example",
      "status": {
        "id": 1,
        "resource_type": "example"
      },
      "subject": "example",
      "type": {
        "id": 1,
        "resource_type": "example"
      },
      "updated_at": "example"
    },
    "resource": "example",
    "status": 1
  }
}
```

### Update organization

Change an organization's name, domains, sharing or tags.

**Inputs**

- Organization (`organization_id`, number, required): The organization.
- Name (`name`, text): The organization's name.
- Domains (`domains`, list): Domains to replace its domains with.
- Shared (`is_shared`, true/false): Let its members see each other's cases.
- Tags (`tags`, list): Tags to replace its tags with.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "custom_fields": [
        {
          "field": {
            "id": 1,
            "resource_type": "example"
          },
          "value": "example"
        }
      ],
      "domains": [
        {
          "id": 1,
          "resource_type": "example"
        }
      ],
      "id": 1,
      "is_shared": true,
      "legacy_id": "example",
      "name": "example",
      "pinned_notes_count": 1,
      "updated_at": "example"
    },
    "resource": "example",
    "status": 1
  }
}
```

### Update user

Change a user's name, role, organization, job title, teams, tags or time zone.

**Inputs**

- User ID (`kayako_user_id`, number, required): The user's ID, from List users or a trigger.
- Full name (`full_name`, text): The person's full name.
- Role (`role_id`, number): The person's role.
- Organization (`organization_id`, number): The organization the person belongs to.
- Job title (`designation`, text): The person's job title.
- Teams (`team_ids`, list): Teams to replace the person's teams with.
- Tags (`tags`, list): Tags to replace the person's tags with.
- Time zone (`time_zone`, text): The person's time zone, such as Europe/London.
- Enabled (`is_enabled`, true/false): Whether the person can sign in.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "custom_fields": [
        {
          "field": {
            "id": 1,
            "resource_type": "example"
          },
          "value": "example"
        }
      ],
      "designation": "example",
      "emails": [
        {
          "id": 1,
          "resource_type": "example"
        }
      ],
      "full_name": "example",
      "id": 1,
      "is_enabled": true,
      "last_active_at": "example",
      "last_seen_at": "example",
      "legacy_id": "example",
      "locale": "example",
      "organization": {
        "id": 1,
        "resource_type": "example"
      },
      "phones": [
        {
          "id": 1,
          "resource_type": "example"
        }
      ],
      "role": {
        "id": 1,
        "resource_type": "example"
      },
      "teams": [
        {
          "id": 1,
          "resource_type": "example"
        }
      ],
      "time_zone": "example",
      "updated_at": "example",
      "uuid": "example"
    },
    "resource": "example",
    "status": 1
  }
}
```
