# Zendesk Sell

> Manage leads, contacts, deals, tasks and notes in Zendesk Sell.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/zendesk-sell

## Actions

### Create contact

Create a person or a company. A person needs a last name and a company needs a name.

**Inputs**

- Is a company (`is_organization`, true/false): Turn on for a company, off for a person. It can't be changed later.
- Company name (`name`, text): The company's name. Needed for a company.
- First name (`first_name`, text): The person's first name.
- Last name (`last_name`, text): The person's last name. Needed for a person.
- Company (`contact_id`, number): The company this person works for.
- Owner (`owner_id`, number): The Sell user who owns it.
- Customer status (`customer_status`, text): Whether they are a customer. One of: `none`, `current`, `past`.
- Prospect status (`prospect_status`, text): Whether they are a prospect. One of: `none`, `current`, `lost`.
- Job title (`title`, text): Job title.
- Description (`description`, text): A description.
- Industry (`industry`, text): Industry.
- Website (`website`, text): Website address.
- Email (`email`, text): Email address.
- Phone (`phone`, text): Phone number.
- Mobile (`mobile`, text): Mobile phone number.
- Street (`address_line1`, text): Street address.
- City (`address_city`, text): City.
- Postal code (`address_postal_code`, text): ZIP or postal code.
- State (`address_state`, text): State or region.
- Country (`address_country`, text): Country.
- Tags (`tags`, list): Tags for the contact. On an update this replaces every tag the contact has.
- Custom fields (`custom_fields`, object): Custom field values for the contact, by the custom field's name, such as {"Known via": "Tom"}.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "example",
      "country": "example",
      "line1": "example",
      "postal_code": "example",
      "state": "example"
    },
    "contact_id": 1,
    "created_at": "example",
    "creator_id": 1,
    "custom_fields": {},
    "customer_status": "example",
    "description": "example",
    "email": "example",
    "first_name": "example",
    "id": 1,
    "industry": "example",
    "is_organization": true,
    "last_name": "example",
    "mobile": "example",
    "name": "example",
    "owner_id": 1,
    "phone": "example",
    "prospect_status": "example",
    "tags": [
      "example"
    ],
    "title": "example",
    "updated_at": "example",
    "website": "example"
  }
}
```

### Create deal

Create a deal with a person or company. New deals start in the first stage of the default pipeline unless you pick a stage.

**Inputs**

- Name (`name`, text, required): The deal's name.
- Contact (`contact_id`, number, required): The person or company the deal is with.
- Value (`value`, number): The deal's value, such as 2500 or 2500.75. At least 0.
- Currency (`currency`, text): Three-letter currency code, such as USD. Leave empty for the account's currency.
- Stage (`stage_id`, number): The pipeline stage the deal is in.
- Owner (`owner_id`, number): The Sell user who owns it.
- Hot (`hot`, true/false): Mark the deal as hot.
- Source ID (`source_id`, number): The ID of the deal source.
- Expected close date (`estimated_close_date`, date): When the deal is expected to close.
- Win likelihood (`customized_win_likelihood`, number): How likely the deal is to be won, from 0 to 100 percent. From 0 to 100.
- Tags (`tags`, list): Tags for the deal. On an update this replaces every tag the deal has.
- Custom fields (`custom_fields`, object): Custom field values for the deal, by the custom field's name, such as {"Known via": "Tom"}.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "contact_id": 1,
    "created_at": "example",
    "creator_id": 1,
    "currency": "example",
    "custom_fields": {},
    "customized_win_likelihood": 1,
    "estimated_close_date": "example",
    "hot": true,
    "id": 1,
    "last_stage_change_at": "example",
    "loss_reason_id": 1,
    "name": "example",
    "organization_id": 1,
    "owner_id": 1,
    "source_id": 1,
    "stage_id": 1,
    "tags": [
      "example"
    ],
    "updated_at": "example",
    "value": "example"
  }
}
```

### Create lead

Create a lead. Give a last name, an organization name, or both.

**Inputs**

- First name (`first_name`, text): The person's first name.
- Last name (`last_name`, text): The person's last name. A lead needs a last name or an organization name.
- Organization name (`organization_name`, text): The organization's name. A lead needs a last name or an organization name.
- Status (`status`, text): The lead status, such as New, Working or Unqualified.
- Source ID (`source_id`, number): The ID of the lead source.
- Owner (`owner_id`, number): The Sell user who owns it.
- Job title (`title`, text): Job title.
- Description (`description`, text): A description.
- Industry (`industry`, text): Industry.
- Website (`website`, text): Website address.
- Email (`email`, text): Email address.
- Phone (`phone`, text): Phone number.
- Mobile (`mobile`, text): Mobile phone number.
- Street (`address_line1`, text): Street address.
- City (`address_city`, text): City.
- Postal code (`address_postal_code`, text): ZIP or postal code.
- State (`address_state`, text): State or region.
- Country (`address_country`, text): Country.
- Tags (`tags`, list): Tags for the lead. On an update this replaces every tag the lead has.
- Custom fields (`custom_fields`, object): Custom field values for the lead, by the custom field's name, such as {"Known via": "Tom"}.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "example",
      "country": "example",
      "line1": "example",
      "postal_code": "example",
      "state": "example"
    },
    "created_at": "example",
    "creator_id": 1,
    "custom_fields": {},
    "description": "example",
    "email": "example",
    "first_name": "example",
    "id": 1,
    "industry": "example",
    "last_name": "example",
    "mobile": "example",
    "organization_name": "example",
    "owner_id": 1,
    "phone": "example",
    "source_id": 1,
    "status": "example",
    "tags": [
      "example"
    ],
    "title": "example",
    "updated_at": "example",
    "website": "example"
  }
}
```

### Create note

Add a note to a lead, contact or deal.

**Inputs**

- Record type (`resource_type`, text, required): What kind of record the note is on. One of: `lead`, `contact`, `deal`.
- Record ID (`resource_id`, number, required): The ID of the lead, contact or deal.
- Note (`content`, text, required): The note's text.
- Important (`is_important`, true/false): Mark the note as important.
- Visibility (`type`, text): Who can see the note: everyone who can see the record (regular), or only you and admins (restricted). One of: `regular`, `restricted`.
- Tags (`tags`, list): Tags for the note.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "content": "example",
    "created_at": "example",
    "creator_id": 1,
    "id": 1,
    "is_important": true,
    "resource_id": 1,
    "resource_type": "example",
    "tags": [
      "example"
    ],
    "type": "example",
    "updated_at": "example"
  }
}
```

### Create task

Create a task, on its own or about a lead, contact or deal.

**Inputs**

- Task (`content`, text, required): What the task is.
- Due (`due_date`, date and time): When the task is due.
- Remind at (`remind_at`, date and time): When to send a reminder. It must be before the due time.
- Owner (`owner_id`, number): The Sell user the task is assigned to.
- Linked record type (`resource_type`, text): What kind of record the task is about. Leave empty for a task on its own. One of: `lead`, `contact`, `deal`.
- Linked record ID (`resource_id`, number): The ID of the lead, contact or deal the task is about.
- Completed (`completed`, true/false): Whether the task is done.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "completed": true,
    "completed_at": "example",
    "content": "example",
    "created_at": "example",
    "creator_id": 1,
    "due_date": "example",
    "id": 1,
    "overdue": true,
    "owner_id": 1,
    "remind_at": "example",
    "resource_id": 1,
    "resource_type": "example",
    "updated_at": "example"
  }
}
```

### Delete contact

Delete a person or company. This can't be undone.

**Inputs**

- Contact (`contact_id`, number, required): The contact's ID.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

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

### Delete deal

Delete a deal. This can't be undone.

**Inputs**

- Deal (`deal_id`, number, required): The deal's ID.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

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

### Delete lead

Delete a lead. This can't be undone.

**Inputs**

- Lead (`lead_id`, number, required): The lead's ID.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

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

### Delete note

Delete a note. This can't be undone.

**Inputs**

- Note (`note_id`, number, required): The note's ID.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

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

### Delete task

Delete a task. This can't be undone.

**Inputs**

- Task (`task_id`, number, required): The task's ID.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

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

### Get contact

Get one person or company by its ID.

**Inputs**

- Contact (`contact_id`, number, required): The contact's ID.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "example",
      "country": "example",
      "line1": "example",
      "postal_code": "example",
      "state": "example"
    },
    "contact_id": 1,
    "created_at": "example",
    "creator_id": 1,
    "custom_fields": {},
    "customer_status": "example",
    "description": "example",
    "email": "example",
    "first_name": "example",
    "id": 1,
    "industry": "example",
    "is_organization": true,
    "last_name": "example",
    "mobile": "example",
    "name": "example",
    "owner_id": 1,
    "phone": "example",
    "prospect_status": "example",
    "tags": [
      "example"
    ],
    "title": "example",
    "updated_at": "example",
    "website": "example"
  }
}
```

### Get current user

Get the Sell user the connection signs in as.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "email": "example",
    "id": 1,
    "name": "example",
    "phone_number": "example",
    "role": "example",
    "status": "example",
    "team_name": "example",
    "timezone": "example",
    "updated_at": "example"
  }
}
```

### Get deal

Get one deal by its ID.

**Inputs**

- Deal (`deal_id`, number, required): The deal's ID.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "contact_id": 1,
    "created_at": "example",
    "creator_id": 1,
    "currency": "example",
    "custom_fields": {},
    "customized_win_likelihood": 1,
    "estimated_close_date": "example",
    "hot": true,
    "id": 1,
    "last_stage_change_at": "example",
    "loss_reason_id": 1,
    "name": "example",
    "organization_id": 1,
    "owner_id": 1,
    "source_id": 1,
    "stage_id": 1,
    "tags": [
      "example"
    ],
    "updated_at": "example",
    "value": "example"
  }
}
```

### Get lead

Get one lead by its ID.

**Inputs**

- Lead (`lead_id`, number, required): The lead's ID.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "example",
      "country": "example",
      "line1": "example",
      "postal_code": "example",
      "state": "example"
    },
    "created_at": "example",
    "creator_id": 1,
    "custom_fields": {},
    "description": "example",
    "email": "example",
    "first_name": "example",
    "id": 1,
    "industry": "example",
    "last_name": "example",
    "mobile": "example",
    "organization_name": "example",
    "owner_id": 1,
    "phone": "example",
    "source_id": 1,
    "status": "example",
    "tags": [
      "example"
    ],
    "title": "example",
    "updated_at": "example",
    "website": "example"
  }
}
```

### List contacts

List people and companies, filtered by name, email, owner or company.

**Inputs**

- Companies only (`is_organization`, true/false): On for companies only, off for people only. Leave empty for both.
- Company name (`name`, text): Only the company with this name.
- First name (`first_name`, text): Only people with this first name.
- Last name (`last_name`, text): Only people with this last name.
- Email (`email`, text): Only contacts with this email address.
- Company (`contact_id`, number): Only people who work for this company.
- Owner (`owner_id`, number): Only contacts this user owns.
- Page (`page`, number): Which page of results to read, starting at 1. At least 1.
- Results per page (`per_page`, number): How many results to read per page, up to 100. Leave empty for 25. From 1 to 100.
- Sort by (`sort_by`, text): How to order the results. Columns ending in :desc are newest or largest first. One of: `id`, `id:desc`, `name`, `name:desc`, `first_name` (First name), `first_name:desc` (First name:desc), `last_name` (Last name), `last_name:desc` (Last name:desc), `email`, `email:desc`, and 4 more.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "address": {
          "city": "example",
          "country": "example",
          "line1": "example",
          "postal_code": "example",
          "state": "example"
        },
        "contact_id": 1,
        "created_at": "example",
        "creator_id": 1,
        "custom_fields": {},
        "customer_status": "example",
        "description": "example",
        "email": "example",
        "first_name": "example",
        "id": 1,
        "industry": "example",
        "is_organization": true,
        "last_name": "example",
        "mobile": "example",
        "name": "example",
        "owner_id": 1,
        "phone": "example",
        "prospect_status": "example",
        "tags": [
          "example"
        ],
        "title": "example",
        "updated_at": "example",
        "website": "example"
      }
    ],
    "meta": {
      "count": 1,
      "links": {},
      "type": "example"
    }
  }
}
```

### List deals

List deals, filtered by stage, owner, contact or name.

**Inputs**

- Stage (`stage_id`, number): Only deals in this stage.
- Owner (`owner_id`, number): Only deals this user owns.
- Contact (`contact_id`, number): Only deals with this person or company.
- Name (`name`, text): Only deals with this name.
- Hot only (`hot`, true/false): On for hot deals only.
- Page (`page`, number): Which page of results to read, starting at 1. At least 1.
- Results per page (`per_page`, number): How many results to read per page, up to 100. Leave empty for 25. From 1 to 100.
- Sort by (`sort_by`, text): How to order the results. Columns ending in :desc are newest or largest first. One of: `id`, `id:desc`, `value`, `value:desc`, `name`, `name:desc`, `estimated_close_date` (Estimated close date), `estimated_close_date:desc` (Estimated close date:desc), `created_at` (Created at), `created_at:desc` (Created at:desc), `updated_at` (Updated at), `updated_at:desc` (Updated at:desc).

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "contact_id": 1,
        "created_at": "example",
        "creator_id": 1,
        "currency": "example",
        "custom_fields": {},
        "customized_win_likelihood": 1,
        "estimated_close_date": "example",
        "hot": true,
        "id": 1,
        "last_stage_change_at": "example",
        "loss_reason_id": 1,
        "name": "example",
        "organization_id": 1,
        "owner_id": 1,
        "source_id": 1,
        "stage_id": 1,
        "tags": [
          "example"
        ],
        "updated_at": "example",
        "value": "example"
      }
    ],
    "meta": {
      "count": 1,
      "links": {},
      "type": "example"
    }
  }
}
```

### List leads

List leads, filtered by owner, status, name or email.

**Inputs**

- Owner (`owner_id`, number): Only leads this user owns.
- Status (`status`, text): Only leads with this status, such as New.
- Email (`email`, text): Only leads with this email address.
- First name (`first_name`, text): Only leads with this first name.
- Last name (`last_name`, text): Only leads with this last name.
- Organization name (`organization_name`, text): Only leads from this organization.
- Source ID (`source_id`, number): Only leads from this source.
- Page (`page`, number): Which page of results to read, starting at 1. At least 1.
- Results per page (`per_page`, number): How many results to read per page, up to 100. Leave empty for 25. From 1 to 100.
- Sort by (`sort_by`, text): How to order the results. Columns ending in :desc are newest or largest first. One of: `id`, `id:desc`, `first_name` (First name), `first_name:desc` (First name:desc), `last_name` (Last name), `last_name:desc` (Last name:desc), `organization_name` (Organization name), `organization_name:desc` (Organization name:desc), `email`, `email:desc`, and 4 more.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "address": {
          "city": "example",
          "country": "example",
          "line1": "example",
          "postal_code": "example",
          "state": "example"
        },
        "created_at": "example",
        "creator_id": 1,
        "custom_fields": {},
        "description": "example",
        "email": "example",
        "first_name": "example",
        "id": 1,
        "industry": "example",
        "last_name": "example",
        "mobile": "example",
        "organization_name": "example",
        "owner_id": 1,
        "phone": "example",
        "source_id": 1,
        "status": "example",
        "tags": [
          "example"
        ],
        "title": "example",
        "updated_at": "example",
        "website": "example"
      }
    ],
    "meta": {
      "count": 1,
      "links": {},
      "type": "example"
    }
  }
}
```

### List notes

List notes, filtered by the record they are on or by their text.

**Inputs**

- Record type (`resource_type`, text): Only notes on this kind of record. One of: `lead`, `contact`, `deal`.
- Record ID (`resource_id`, number): Only notes on the record with this ID.
- Search (`q`, text): Only notes whose text contains these words.
- Page (`page`, number): Which page of results to read, starting at 1. At least 1.
- Results per page (`per_page`, number): How many results to read per page, up to 100. Leave empty for 25. From 1 to 100.
- Sort by (`sort_by`, text): How to order the results. Columns ending in :desc are newest or largest first. One of: `created_at` (Created at), `created_at:desc` (Created at:desc), `updated_at` (Updated at), `updated_at:desc` (Updated at:desc).

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "content": "example",
        "created_at": "example",
        "creator_id": 1,
        "id": 1,
        "is_important": true,
        "resource_id": 1,
        "resource_type": "example",
        "tags": [
          "example"
        ],
        "type": "example",
        "updated_at": "example"
      }
    ],
    "meta": {
      "count": 1,
      "links": {},
      "type": "example"
    }
  }
}
```

### List pipelines

List the account's deal pipelines.

**Inputs**

- Page (`page`, number): Which page of results to read, starting at 1. At least 1.
- Results per page (`per_page`, number): How many results to read per page, up to 100. Leave empty for 25. From 1 to 100.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "created_at": "example",
        "disabled": true,
        "id": 1,
        "name": "example"
      }
    ],
    "meta": {
      "count": 1,
      "links": {},
      "type": "example"
    }
  }
}
```

### List stages

List the stages of the deal pipelines, in order.

**Inputs**

- Pipeline (`pipeline_id`, number): Only the stages of this pipeline.
- Active only (`active`, true/false): On for active stages only, off for won, lost and unqualified.
- Page (`page`, number): Which page of results to read, starting at 1. At least 1.
- Results per page (`per_page`, number): How many results to read per page, up to 100. Leave empty for 25. From 1 to 100.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "active": true,
        "category": "example",
        "created_at": "example",
        "id": 1,
        "likelihood": 1,
        "name": "example",
        "pipeline_id": 1,
        "position": 1,
        "updated_at": "example"
      }
    ],
    "meta": {
      "count": 1,
      "links": {},
      "type": "example"
    }
  }
}
```

### List tasks

List tasks, filtered by owner, the record they are about, or whether they are done.

**Inputs**

- Completed (`completed`, true/false): On for done tasks only, off for open tasks only.
- Overdue only (`overdue`, true/false): On for overdue tasks only.
- Owner (`owner_id`, number): Only tasks assigned to this user.
- Linked record type (`resource_type`, text): Only tasks about this kind of record. One of: `lead`, `contact`, `deal`.
- Linked record ID (`resource_id`, number): Only tasks about the record with this ID.
- Search (`q`, text): Only tasks whose text contains these words.
- Page (`page`, number): Which page of results to read, starting at 1. At least 1.
- Results per page (`per_page`, number): How many results to read per page, up to 100. Leave empty for 25. From 1 to 100.
- Sort by (`sort_by`, text): How to order the results. Columns ending in :desc are newest or largest first. One of: `due_date` (Due date), `due_date:desc` (Due date:desc), `completed_at` (Completed at), `completed_at:desc` (Completed at:desc), `created_at` (Created at), `created_at:desc` (Created at:desc), `updated_at` (Updated at), `updated_at:desc` (Updated at:desc).

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "completed": true,
        "completed_at": "example",
        "content": "example",
        "created_at": "example",
        "creator_id": 1,
        "due_date": "example",
        "id": 1,
        "overdue": true,
        "owner_id": 1,
        "remind_at": "example",
        "resource_id": 1,
        "resource_type": "example",
        "updated_at": "example"
      }
    ],
    "meta": {
      "count": 1,
      "links": {},
      "type": "example"
    }
  }
}
```

### List users

List the users in the Sell account.

**Inputs**

- Status (`status`, text): Only active or only inactive users. One of: `active`, `inactive`.
- Role (`role`, text): Only admins or only regular users. One of: `user`, `admin`.
- Email (`email`, text): Only the user with this email address.
- Page (`page`, number): Which page of results to read, starting at 1. At least 1.
- Results per page (`per_page`, number): How many results to read per page, up to 100. Leave empty for 25. From 1 to 100.
- Sort by (`sort_by`, text): How to order the results. Columns ending in :desc are newest or largest first. One of: `id`, `id:desc`, `name`, `name:desc`, `created_at` (Created at), `created_at:desc` (Created at:desc), `updated_at` (Updated at), `updated_at:desc` (Updated at:desc).

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "created_at": "example",
        "email": "example",
        "id": 1,
        "name": "example",
        "phone_number": "example",
        "role": "example",
        "status": "example",
        "team_name": "example",
        "timezone": "example",
        "updated_at": "example"
      }
    ],
    "meta": {
      "count": 1,
      "links": {},
      "type": "example"
    }
  }
}
```

### Update contact

Change a person or company. Only the fields you fill in are changed.

**Inputs**

- Contact (`contact_record_id`, number, required): The contact's ID.
- Company name (`name`, text): The company's name. Needed for a company.
- First name (`first_name`, text): The person's first name.
- Last name (`last_name`, text): The person's last name. Needed for a person.
- Company (`contact_id`, number): The company this person works for.
- Owner (`owner_id`, number): The Sell user who owns it.
- Customer status (`customer_status`, text): Whether they are a customer. One of: `none`, `current`, `past`.
- Prospect status (`prospect_status`, text): Whether they are a prospect. One of: `none`, `current`, `lost`.
- Job title (`title`, text): Job title.
- Description (`description`, text): A description.
- Industry (`industry`, text): Industry.
- Website (`website`, text): Website address.
- Email (`email`, text): Email address.
- Phone (`phone`, text): Phone number.
- Mobile (`mobile`, text): Mobile phone number.
- Street (`address_line1`, text): Street address.
- City (`address_city`, text): City.
- Postal code (`address_postal_code`, text): ZIP or postal code.
- State (`address_state`, text): State or region.
- Country (`address_country`, text): Country.
- Tags (`tags`, list): Tags for the contact. On an update this replaces every tag the contact has.
- Custom fields (`custom_fields`, object): Custom field values for the contact, by the custom field's name, such as {"Known via": "Tom"}.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "example",
      "country": "example",
      "line1": "example",
      "postal_code": "example",
      "state": "example"
    },
    "contact_id": 1,
    "created_at": "example",
    "creator_id": 1,
    "custom_fields": {},
    "customer_status": "example",
    "description": "example",
    "email": "example",
    "first_name": "example",
    "id": 1,
    "industry": "example",
    "is_organization": true,
    "last_name": "example",
    "mobile": "example",
    "name": "example",
    "owner_id": 1,
    "phone": "example",
    "prospect_status": "example",
    "tags": [
      "example"
    ],
    "title": "example",
    "updated_at": "example",
    "website": "example"
  }
}
```

### Update deal

Change a deal, such as its stage or value. Only the fields you fill in are changed.

**Inputs**

- Deal (`deal_id`, number, required): The deal's ID.
- Name (`name`, text): The deal's name.
- Contact (`contact_id`, number): The person or company the deal is with.
- Value (`value`, number): The deal's value, such as 2500 or 2500.75. At least 0.
- Currency (`currency`, text): Three-letter currency code, such as USD. Leave empty for the account's currency.
- Stage (`stage_id`, number): The pipeline stage the deal is in.
- Owner (`owner_id`, number): The Sell user who owns it.
- Hot (`hot`, true/false): Mark the deal as hot.
- Source ID (`source_id`, number): The ID of the deal source.
- Expected close date (`estimated_close_date`, date): When the deal is expected to close.
- Win likelihood (`customized_win_likelihood`, number): How likely the deal is to be won, from 0 to 100 percent. From 0 to 100.
- Tags (`tags`, list): Tags for the deal. On an update this replaces every tag the deal has.
- Custom fields (`custom_fields`, object): Custom field values for the deal, by the custom field's name, such as {"Known via": "Tom"}.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "contact_id": 1,
    "created_at": "example",
    "creator_id": 1,
    "currency": "example",
    "custom_fields": {},
    "customized_win_likelihood": 1,
    "estimated_close_date": "example",
    "hot": true,
    "id": 1,
    "last_stage_change_at": "example",
    "loss_reason_id": 1,
    "name": "example",
    "organization_id": 1,
    "owner_id": 1,
    "source_id": 1,
    "stage_id": 1,
    "tags": [
      "example"
    ],
    "updated_at": "example",
    "value": "example"
  }
}
```

### Update lead

Change a lead. Only the fields you fill in are changed.

**Inputs**

- Lead (`lead_id`, number, required): The lead's ID.
- First name (`first_name`, text): The person's first name.
- Last name (`last_name`, text): The person's last name. A lead needs a last name or an organization name.
- Organization name (`organization_name`, text): The organization's name. A lead needs a last name or an organization name.
- Status (`status`, text): The lead status, such as New, Working or Unqualified.
- Source ID (`source_id`, number): The ID of the lead source.
- Owner (`owner_id`, number): The Sell user who owns it.
- Job title (`title`, text): Job title.
- Description (`description`, text): A description.
- Industry (`industry`, text): Industry.
- Website (`website`, text): Website address.
- Email (`email`, text): Email address.
- Phone (`phone`, text): Phone number.
- Mobile (`mobile`, text): Mobile phone number.
- Street (`address_line1`, text): Street address.
- City (`address_city`, text): City.
- Postal code (`address_postal_code`, text): ZIP or postal code.
- State (`address_state`, text): State or region.
- Country (`address_country`, text): Country.
- Tags (`tags`, list): Tags for the lead. On an update this replaces every tag the lead has.
- Custom fields (`custom_fields`, object): Custom field values for the lead, by the custom field's name, such as {"Known via": "Tom"}.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "example",
      "country": "example",
      "line1": "example",
      "postal_code": "example",
      "state": "example"
    },
    "created_at": "example",
    "creator_id": 1,
    "custom_fields": {},
    "description": "example",
    "email": "example",
    "first_name": "example",
    "id": 1,
    "industry": "example",
    "last_name": "example",
    "mobile": "example",
    "organization_name": "example",
    "owner_id": 1,
    "phone": "example",
    "source_id": 1,
    "status": "example",
    "tags": [
      "example"
    ],
    "title": "example",
    "updated_at": "example",
    "website": "example"
  }
}
```

### Update task

Change a task, or mark it done. Only the fields you fill in are changed.

**Inputs**

- Task (`task_id`, number, required): The task's ID.
- Task (`content`, text): What the task is.
- Due (`due_date`, date and time): When the task is due.
- Remind at (`remind_at`, date and time): When to send a reminder. It must be before the due time.
- Owner (`owner_id`, number): The Sell user the task is assigned to.
- Linked record type (`resource_type`, text): What kind of record the task is about. Leave empty for a task on its own. One of: `lead`, `contact`, `deal`.
- Linked record ID (`resource_id`, number): The ID of the lead, contact or deal the task is about.
- Completed (`completed`, true/false): Whether the task is done.

**Outputs**

- `data` (object): The response from Zendesk Sell.

**Example output**

```json
{
  "data": {
    "completed": true,
    "completed_at": "example",
    "content": "example",
    "created_at": "example",
    "creator_id": 1,
    "due_date": "example",
    "id": 1,
    "overdue": true,
    "owner_id": 1,
    "remind_at": "example",
    "resource_id": 1,
    "resource_type": "example",
    "updated_at": "example"
  }
}
```
