# Add or Update Company Note

## Add or Update Company Note

<mark style="color:green;">`POST`</mark> `[PlatformAddress]/api/1.0/contact?action=addOrUpdateCompanyNote`

Add or update company note details

#### Request Body

| Name      | Type    | Description                                                            |
| --------- | ------- | ---------------------------------------------------------------------- |
| id        | integer | The company note's identifier. (Leave empty to add new)                |
| companyId | integer | The unique identifier of the company to which note being added/updated |
| noteText  | string  | The description of the note                                            |

{% tabs %}
{% tab title="200 " %}

```
{
  "success": true
  "id":33884
}
```

{% endtab %}
{% endtabs %}

## Example Request: Adding a company note

```javascript
{
    "companyId": 2,
    "noteText": "test note",
}
```

## Returns

| Property | Description                                           |
| -------- | ----------------------------------------------------- |
| success  | If the company note was successfully added or updated |
| id       | The unique identifier for the company note            |
