# noCRM.io

> Create, update and assign leads in noCRM.io, comment on them and keep client folders in order.

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

## Actions

### Add comment to lead

Add a comment to a lead, optionally logging an activity such as a call.

**Inputs**

- Lead ID (`lead_id`, text, required): The lead's ID.
- Comment (`content`, text, required): What the comment says.
- Written by (`user`, text): The user the comment is from. Pick one, or enter an ID or email address.
- Activity (`activity_id`, text): The activity it logs, such as a call.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "activity_id": 3,
    "commented_item": {
      "id": 2999,
      "item": "Lead"
    },
    "content": "this is a content",
    "created_at": "2015-08-20T21:57:40.000Z",
    "id": 99,
    "is_pinned": true,
    "raw_content": "this is a content",
    "user": {
      "email": "stef@example.com",
      "firstname": "St\u00e9phanie",
      "id": 514,
      "lastname": "Stone",
      "mobile_phone": "",
      "phone": "+33609090909"
    }
  }
}
```

### Add lead to client folder

Put a lead in a client folder.

**Inputs**

- Lead ID (`id`, text, required): The lead's ID.
- Client folder (`client_id`, number, required): The client folder. Pick one, or use its ID.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "amount": 2400.0,
    "attachment_count": 0,
    "client_folder_id": 1,
    "client_folder_name": "Acme",
    "comment_count": 0,
    "created_at": "2014-02-28T17:37:33.000Z",
    "created_by_id": 514,
    "created_from": "api",
    "currency": "USD",
    "description": "Firstname: Natalia\nLastname: Bawer\nEmail: natalia.bawer@loretta-inc.com",
    "estimated_closing_date": "2014-04-30",
    "extended_info": {
      "all_contact_emails": [
        "natalia.bawer@loretta-inc.com"
      ],
      "created_by": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      },
      "fields": {
        "address": "1234 N 7864 W President Bld",
        "email": "natalia.bawer@loretta-inc.com",
        "first_name": "Natalia",
        "full_name": "Natalia Bawer",
        "job": "Sales",
        "last_name": "Bawer",
        "mobile": "832 764 1930",
        "phone": "801 274 6798",
        "web": "http://more-info-loretta.com"
      },
      "fields_by_name": {},
      "first_contact_email": "natalia.bawer@loretta-inc.com",
      "permalink": "https://acme.nocrm.io/leads/8113",
      "user": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      }
    },
    "html_description": "Firstname: Natalia<br />Lastname: Bawer",
    "id": 8113,
    "next_action_at": "2014-03-12T07:30:00.000Z",
    "probability": 30,
    "remind_date": "2014-03-12",
    "remind_time": "09:00",
    "starred": true,
    "status": "standby",
    "step": "Incoming",
    "step_id": 45,
    "tags": [
      "small",
      "US"
    ],
    "title": "Loretta Inc.",
    "updated_at": "2014-02-28T17:38:05.000Z",
    "user_id": 514
  }
}
```

### Assign lead

Assign a lead to a user, who is emailed about it if they chose to be.

**Inputs**

- Lead ID (`id`, text, required): The lead's ID.
- User (`user`, text, required): The user to assign it to. Pick one, or enter a user's ID or email address.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "amount": 2400.0,
    "attachment_count": 0,
    "client_folder_id": 1,
    "client_folder_name": "Acme",
    "comment_count": 0,
    "created_at": "2014-02-28T17:37:33.000Z",
    "created_by_id": 514,
    "created_from": "api",
    "currency": "USD",
    "description": "Firstname: Natalia\nLastname: Bawer\nEmail: natalia.bawer@loretta-inc.com",
    "estimated_closing_date": "2014-04-30",
    "extended_info": {
      "all_contact_emails": [
        "natalia.bawer@loretta-inc.com"
      ],
      "created_by": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      },
      "fields": {
        "address": "1234 N 7864 W President Bld",
        "email": "natalia.bawer@loretta-inc.com",
        "first_name": "Natalia",
        "full_name": "Natalia Bawer",
        "job": "Sales",
        "last_name": "Bawer",
        "mobile": "832 764 1930",
        "phone": "801 274 6798",
        "web": "http://more-info-loretta.com"
      },
      "fields_by_name": {},
      "first_contact_email": "natalia.bawer@loretta-inc.com",
      "permalink": "https://acme.nocrm.io/leads/8113",
      "user": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      }
    },
    "html_description": "Firstname: Natalia<br />Lastname: Bawer",
    "id": 8113,
    "next_action_at": "2014-03-12T07:30:00.000Z",
    "probability": 30,
    "remind_date": "2014-03-12",
    "remind_time": "09:00",
    "starred": true,
    "status": "standby",
    "step": "Incoming",
    "step_id": 45,
    "tags": [
      "small",
      "US"
    ],
    "title": "Loretta Inc.",
    "updated_at": "2014-02-28T17:38:05.000Z",
    "user_id": 514
  }
}
```

### Create client folder

Create a client folder to group a customer's leads.

**Inputs**

- Name (`name`, text, required): The client folder's name.
- Description (`description`, text): Notes about the client.
- Owner (`user`, text): The user it belongs to. Pick one, or enter a user's ID or email address.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "created_at": "2017-02-17T22:03:20.000Z",
    "description": "Address: 2344 Paradise Av, Eden CA 90001",
    "extended_info": {
      "fields_by_name": {},
      "permalink": "https://acme.nocrm.io/clients/12",
      "user": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      }
    },
    "id": 12,
    "is_active": true,
    "name": "Blue Client",
    "user_id": 514
  }
}
```

### Create lead

Add a lead, unassigned or assigned to a user.

**Inputs**

- Title (`title`, text, required): The lead's title, usually the company name.
- Description (`description`, text, required): The contact's details, one per line, such as Firstname: Jane and Email: jane@example.com.
- Assign to (`user`, text): The user to assign it to. Pick one, or enter a user's ID or email address. Leave empty to leave it unassigned.
- Tags (`tags`, list): Tags for the lead. New ones are created.
- Step (`step`, text): The step to put it at, by ID or name. Only works when it is assigned.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "amount": 2400.0,
    "attachment_count": 0,
    "client_folder_id": 1,
    "client_folder_name": "Acme",
    "comment_count": 0,
    "created_at": "2014-02-28T17:37:33.000Z",
    "created_by_id": 514,
    "created_from": "api",
    "currency": "USD",
    "description": "Firstname: Natalia\nLastname: Bawer\nEmail: natalia.bawer@loretta-inc.com",
    "estimated_closing_date": "2014-04-30",
    "extended_info": {
      "all_contact_emails": [
        "natalia.bawer@loretta-inc.com"
      ],
      "created_by": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      },
      "fields": {
        "address": "1234 N 7864 W President Bld",
        "email": "natalia.bawer@loretta-inc.com",
        "first_name": "Natalia",
        "full_name": "Natalia Bawer",
        "job": "Sales",
        "last_name": "Bawer",
        "mobile": "832 764 1930",
        "phone": "801 274 6798",
        "web": "http://more-info-loretta.com"
      },
      "fields_by_name": {},
      "first_contact_email": "natalia.bawer@loretta-inc.com",
      "permalink": "https://acme.nocrm.io/leads/8113",
      "user": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      }
    },
    "html_description": "Firstname: Natalia<br />Lastname: Bawer",
    "id": 8113,
    "next_action_at": "2014-03-12T07:30:00.000Z",
    "probability": 30,
    "remind_date": "2014-03-12",
    "remind_time": "09:00",
    "starred": true,
    "status": "standby",
    "step": "Incoming",
    "step_id": 45,
    "tags": [
      "small",
      "US"
    ],
    "title": "Loretta Inc.",
    "updated_at": "2014-02-28T17:38:05.000Z",
    "user_id": 514
  }
}
```

### Delete client folder

Delete a client folder.

**Inputs**

- Client folder (`id`, text, required): The client folder. Pick one, or use its ID.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "id": 8113
  }
}
```

### Delete lead

Delete a lead.

**Inputs**

- Lead ID (`id`, text, required): The lead's ID.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "id": 8113
  }
}
```

### Delete lead comment

Delete a comment on a lead.

**Inputs**

- Lead ID (`lead_id`, text, required): The lead's ID.
- Comment ID (`id`, text, required): The comment's ID.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "id": 8113
  }
}
```

### Get client folder

Get one client folder's details.

**Inputs**

- Client folder (`id`, text, required): The client folder. Pick one, or use its ID.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "created_at": "2017-02-17T22:03:20.000Z",
    "description": "Address: 2344 Paradise Av, Eden CA 90001",
    "extended_info": {
      "fields_by_name": {},
      "permalink": "https://acme.nocrm.io/clients/12",
      "user": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      }
    },
    "id": 12,
    "is_active": true,
    "name": "Blue Client",
    "user_id": 514
  }
}
```

### Get lead

Get one lead's details.

**Inputs**

- Lead ID (`id`, text, required): The lead's ID.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "amount": 2400.0,
    "attachment_count": 0,
    "client_folder_id": 1,
    "client_folder_name": "Acme",
    "comment_count": 0,
    "created_at": "2014-02-28T17:37:33.000Z",
    "created_by_id": 514,
    "created_from": "api",
    "currency": "USD",
    "description": "Firstname: Natalia\nLastname: Bawer\nEmail: natalia.bawer@loretta-inc.com",
    "estimated_closing_date": "2014-04-30",
    "extended_info": {
      "all_contact_emails": [
        "natalia.bawer@loretta-inc.com"
      ],
      "created_by": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      },
      "fields": {
        "address": "1234 N 7864 W President Bld",
        "email": "natalia.bawer@loretta-inc.com",
        "first_name": "Natalia",
        "full_name": "Natalia Bawer",
        "job": "Sales",
        "last_name": "Bawer",
        "mobile": "832 764 1930",
        "phone": "801 274 6798",
        "web": "http://more-info-loretta.com"
      },
      "fields_by_name": {},
      "first_contact_email": "natalia.bawer@loretta-inc.com",
      "permalink": "https://acme.nocrm.io/leads/8113",
      "user": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      }
    },
    "html_description": "Firstname: Natalia<br />Lastname: Bawer",
    "id": 8113,
    "next_action_at": "2014-03-12T07:30:00.000Z",
    "probability": 30,
    "remind_date": "2014-03-12",
    "remind_time": "09:00",
    "starred": true,
    "status": "standby",
    "step": "Incoming",
    "step_id": 45,
    "tags": [
      "small",
      "US"
    ],
    "title": "Loretta Inc.",
    "updated_at": "2014-02-28T17:38:05.000Z",
    "user_id": 514
  }
}
```

### List activities

List the activity types set up in your account, such as Call or Meeting.

**Inputs**: None.

**Outputs**

- `data` (list): The activities.

**Example output**

```json
{
  "data": [
    {
      "id": 272,
      "is_disabled": false,
      "kind": "call",
      "name": "Answered",
      "parent_id": 271
    }
  ]
}
```

### List client folders

List your client folders.

**Inputs**

- Sort by (`order`, text): What to sort by. Leave empty for name. One of: `name`, `id`.
- Order (`direction`, text): Which way to sort them. Leave empty for ascending. One of: `asc` (Ascending), `desc` (Descending).

**Outputs**

- `data` (list): The client folders.

**Example output**

```json
{
  "data": [
    {
      "created_at": "2017-02-17T22:03:20.000Z",
      "description": "Address: 2344 Paradise Av, Eden CA 90001",
      "id": 12,
      "is_active": true,
      "name": "Blue Client",
      "user_id": 514
    }
  ]
}
```

### List lead attachments

List the files and linked estimates or invoices on a lead.

**Inputs**

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

**Outputs**

- `data` (list): The attachments.

**Example output**

```json
{
  "data": [
    {
      "content_type": "application/pdf",
      "id": 422,
      "kind": "attachment",
      "name": "You_Dont_Need_a_CRM.pdf",
      "url": "https://acme.nocrm.io/attachments/422"
    }
  ]
}
```

### List lead comments

List the comments on a lead.

**Inputs**

- Lead ID (`lead_id`, text, required): The lead's ID.
- Order (`direction`, text): Which way to sort them. Leave empty for newest first. One of: `asc` (Ascending), `desc` (Descending).

**Outputs**

- `data` (list): The comments.

**Example output**

```json
{
  "data": [
    {
      "activity_id": 3,
      "commented_item": {
        "id": 2999,
        "item": "Lead"
      },
      "content": "this is a content",
      "created_at": "2015-08-20T21:57:40.000Z",
      "id": 99,
      "is_pinned": true,
      "raw_content": "this is a content",
      "user": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      }
    }
  ]
}
```

### List lead history

List what has happened on a lead, such as status and amount changes.

**Inputs**

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

**Outputs**

- `data` (list): What happened, oldest first.

**Example output**

```json
{
  "data": [
    {
      "action_item": {
        "id": 9344,
        "type": "lead_created"
      },
      "action_type": "lead_created",
      "created_at": "2015-04-22T22:53:08.000Z",
      "id": 39728,
      "lead_id": 9344,
      "user": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      }
    }
  ]
}
```

### List leads

List one page of leads, filtered and sorted as you choose.

**Inputs**

- Status (`status`, list): Only leads with one of these statuses. One or more of: `todo` (To do), `standby`, `won`, `cancelled`, `lost`.
- Steps (`step`, list): Only leads at these steps, all by name or all by ID.
- User (`user`, text): Only leads assigned to this user. Pick one, or enter an ID or email address.
- Starred only (`starred`, true/false): Turn on for starred leads only.
- Email (`email`, text): Only leads with this email address in their description or a comment.
- Include unassigned (`include_unassigned`, true/false): Turn on to include unassigned leads.
- Changed after (`updated_after`, date): Only leads changed after this date.
- From (`start_date`, date): Only leads whose date (set by Date to use) is on or after this.
- To (`end_date`, date): Only leads whose date (set by Date to use) is on or before this.
- Date to use (`date_range_type`, text): Which date From and To look at. Leave empty for creation. One of: `creation` (Created), `update` (Changed), `next_action` (Next action), `closed`.
- Sort by (`order`, text): What to sort by. Leave empty for ID. One of: `id`, `creation_date` (Date created), `last_update` (Date changed), `next_action` (Next action), `sale_step` (Step), `amount`, `probability`, `probalized_amount` (Amount times probability), `alphabetically` (Title).
- Order (`direction`, text): Which way to sort them. Leave empty for descending. One of: `asc` (Ascending), `desc` (Descending).
- Page size (`limit`, number): How many to return, up to 100. From 1 to 100.
- Skip (`offset`, number): How many to skip, for reading later pages. At least 0.

**Outputs**

- `data` (list): The leads.

**Example output**

```json
{
  "data": [
    {
      "amount": 2400.0,
      "attachment_count": 0,
      "client_folder_id": 1,
      "client_folder_name": "Acme",
      "created_at": "2014-02-28T17:37:33.000Z",
      "created_by_id": 514,
      "created_from": "api",
      "currency": "USD",
      "description": "Firstname: Natalia\nLastname: Bawer\nEmail: natalia.bawer@loretta-inc.com",
      "id": 8113,
      "next_action_at": "2014-03-12T07:30:00.000Z",
      "probability": 30,
      "starred": true,
      "status": "standby",
      "step": "Incoming",
      "step_id": 45,
      "tags": [
        "small",
        "US"
      ],
      "title": "Loretta Inc.",
      "updated_at": "2014-02-28T17:38:05.000Z",
      "user_id": 514
    }
  ]
}
```

### List pipelines

List the pipelines in your account.

**Inputs**: None.

**Outputs**

- `data` (list): The pipelines.

**Example output**

```json
{
  "data": [
    {
      "created_at": "2016-04-22T22:03:20.000Z",
      "id": 25,
      "is_default": true,
      "name": "Sales funnel",
      "updated_at": "2016-04-22T22:03:20.000Z"
    }
  ]
}
```

### List steps

List the steps of your pipelines, in pipeline order.

**Inputs**

- Order (`direction`, text): Which way to sort by position. Leave empty for ascending. One of: `asc` (Ascending), `desc` (Descending).

**Outputs**

- `data` (list): The steps.

**Example output**

```json
{
  "data": [
    {
      "created_at": "2015-04-22T22:03:20.000Z",
      "id": 1189,
      "name": "Incoming",
      "pipeline": {
        "id": 25,
        "name": "Sales funnel"
      },
      "pipeline_id": 25,
      "position": 1,
      "updated_at": "2015-04-22T22:03:20.000Z"
    }
  ]
}
```

### List teams

List the teams in your account and who is in each.

**Inputs**: None.

**Outputs**

- `data` (list): The teams.

**Example output**

```json
{
  "data": [
    {
      "created_at": "2014-02-11T22:41:26.000Z",
      "id": 514,
      "name": "Web Sales",
      "updated_at": "2014-02-19T16:58:43.000Z",
      "users": [
        {
          "email": "stef@example.com",
          "firstname": "St\u00e9phanie",
          "id": 514,
          "is_manager": true,
          "lastname": "Stone"
        }
      ]
    }
  ]
}
```

### List unassigned leads

List leads that aren't assigned to anyone yet.

**Inputs**

- Page size (`limit`, number): How many to return, up to 100. From 1 to 100.

**Outputs**

- `data` (list): The leads.

**Example output**

```json
{
  "data": [
    {
      "amount": 2400.0,
      "attachment_count": 0,
      "client_folder_id": 1,
      "client_folder_name": "Acme",
      "created_at": "2014-02-28T17:37:33.000Z",
      "created_by_id": 514,
      "created_from": "api",
      "currency": "USD",
      "description": "Firstname: Natalia\nLastname: Bawer\nEmail: natalia.bawer@loretta-inc.com",
      "id": 8113,
      "next_action_at": "2014-03-12T07:30:00.000Z",
      "probability": 30,
      "starred": true,
      "status": "standby",
      "step": "Incoming",
      "step_id": 45,
      "tags": [
        "small",
        "US"
      ],
      "title": "Loretta Inc.",
      "updated_at": "2014-02-28T17:38:05.000Z",
      "user_id": 514
    }
  ]
}
```

### List users

List the users in your noCRM account, including removed ones.

**Inputs**

- Email (`email`, text): Only the user with this email address.
- First name (`firstname`, text): Only users with this first name.
- Last name (`lastname`, text): Only users with this last name.
- Status (`status`, text): Which users to list. Leave empty for all. One of: `all`, `activated`, `deactivated`.
- Role (`role`, text): Only users with this role. Leave empty for all. One of: `all`, `admin` (Administrators), `non-admin` (Everyone else).
- Order (`direction`, text): Which way to sort by ID. Leave empty for ascending. One of: `asc` (Ascending), `desc` (Descending).

**Outputs**

- `data` (list): The users.

**Example output**

```json
{
  "data": [
    {
      "created_at": "2014-02-11T22:41:26.000Z",
      "email": "john.doe@mycompany.com",
      "firstname": "John",
      "has_activated": true,
      "id": 514,
      "is_admin": true,
      "is_disabled": false,
      "job_title": "CEO",
      "lastname": "Doe",
      "locale": "en",
      "mobile_phone": "+33 6 56 67 78 89",
      "permalink": "https://acme.nocrm.io/users/514",
      "phone": "+33 1 12 23 34 45",
      "time_zone": "America/Denver",
      "updated_at": "2014-02-19T16:58:43.000Z"
    }
  ]
}
```

### Update client folder

Rename a client folder, change its description, or make it inactive.

**Inputs**

- Client folder (`id`, text, required): The client folder. Pick one, or use its ID.
- Name (`name`, text): Its new name.
- Description (`description`, text): Its new description.
- Active (`is_active`, true/false): Whether it is active.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "created_at": "2017-02-17T22:03:20.000Z",
    "description": "Address: 2344 Paradise Av, Eden CA 90001",
    "extended_info": {
      "fields_by_name": {},
      "permalink": "https://acme.nocrm.io/clients/12",
      "user": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      }
    },
    "id": 12,
    "is_active": true,
    "name": "Blue Client",
    "user_id": 514
  }
}
```

### Update lead

Change a lead's status, step, amount, reminder or details.

**Inputs**

- Lead ID (`id`, text, required): The lead's ID.
- Title (`title`, text): Its new title.
- Description (`description`, text): Its new description. Replaces the whole description.
- Add to description (`append_desc`, text): Text to add at the end of the description. Leave Description empty when you use this.
- Status (`status`, text): Its new status. Standby needs a reminder date. One of: `todo` (To do), `standby`, `won`, `lost`, `cancelled`.
- Reminder date (`remind_date`, date): The reminder's date, in the account's time zone.
- Reminder time (`remind_time`, time): The reminder's time, in 15-minute steps.
- Reminder length (`reminder_duration`, number): How long the reminder lasts, in minutes. One of: `0` (None), `15` (15 minutes), `30` (30 minutes), `45` (45 minutes), `60` (1 hour), `90` (1.5 hours), `120` (2 hours), `150` (2.5 hours), `180` (3 hours), `240` (4 hours), `480` (8 hours), `720` (12 hours).
- Reminder activity (`reminder_activity_id`, text): The activity for the reminder, such as a call.
- Reminder note (`reminder_note`, text): A note for the reminder.
- Amount (`amount`, number): Its new amount.
- Probability (`probability`, number): Its new probability, in percent. From 0 to 100.
- Starred (`starred`, true/false): Whether it is starred.
- Step (`step`, text): The step to move it to, by ID or name.
- Assign to (`user`, text): The user to assign it to. Pick one, or enter a user's ID or email address.
- Tags (`tags`, list): Its tags. New ones are created.
- Expected close date (`estimated_closing_date`, date): When you expect it to close.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "amount": 2400.0,
    "attachment_count": 0,
    "client_folder_id": 1,
    "client_folder_name": "Acme",
    "comment_count": 0,
    "created_at": "2014-02-28T17:37:33.000Z",
    "created_by_id": 514,
    "created_from": "api",
    "currency": "USD",
    "description": "Firstname: Natalia\nLastname: Bawer\nEmail: natalia.bawer@loretta-inc.com",
    "estimated_closing_date": "2014-04-30",
    "extended_info": {
      "all_contact_emails": [
        "natalia.bawer@loretta-inc.com"
      ],
      "created_by": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      },
      "fields": {
        "address": "1234 N 7864 W President Bld",
        "email": "natalia.bawer@loretta-inc.com",
        "first_name": "Natalia",
        "full_name": "Natalia Bawer",
        "job": "Sales",
        "last_name": "Bawer",
        "mobile": "832 764 1930",
        "phone": "801 274 6798",
        "web": "http://more-info-loretta.com"
      },
      "fields_by_name": {},
      "first_contact_email": "natalia.bawer@loretta-inc.com",
      "permalink": "https://acme.nocrm.io/leads/8113",
      "user": {
        "email": "stef@example.com",
        "firstname": "St\u00e9phanie",
        "id": 514,
        "lastname": "Stone",
        "mobile_phone": "",
        "phone": "+33609090909"
      }
    },
    "html_description": "Firstname: Natalia<br />Lastname: Bawer",
    "id": 8113,
    "next_action_at": "2014-03-12T07:30:00.000Z",
    "probability": 30,
    "remind_date": "2014-03-12",
    "remind_time": "09:00",
    "starred": true,
    "status": "standby",
    "step": "Incoming",
    "step_id": 45,
    "tags": [
      "small",
      "US"
    ],
    "title": "Loretta Inc.",
    "updated_at": "2014-02-28T17:38:05.000Z",
    "user_id": 514
  }
}
```

### Update lead comment

Change a comment on a lead, or pin it.

**Inputs**

- Lead ID (`lead_id`, text, required): The lead's ID.
- Comment ID (`id`, text, required): The comment's ID.
- Comment (`content`, text, required): The comment's new text.
- Activity (`activity_id`, text): The activity it logs, such as a call.
- Pinned (`is_pinned`, true/false): Whether it is pinned.

**Outputs**

- `data` (object): The response from noCRM.io.

**Example output**

```json
{
  "data": {
    "activity_id": 3,
    "commented_item": {
      "id": 2999,
      "item": "Lead"
    },
    "content": "this is a content",
    "created_at": "2015-08-20T21:57:40.000Z",
    "id": 99,
    "is_pinned": true,
    "raw_content": "this is a content",
    "user": {
      "email": "stef@example.com",
      "firstname": "St\u00e9phanie",
      "id": 514,
      "lastname": "Stone",
      "mobile_phone": "",
      "phone": "+33609090909"
    }
  }
}
```
