# Overwrite financial document parties

## Overwrite financial document parties

<mark style="color:orange;">`PUT`</mark> `https://ris.rightsline.com/v4/financial document/:id/overwrite-parties`

This endpoint allows you to overwrite parties for a specific financial document by ID.

#### Path Parameters

| Name                                 | Type   | Description                   |
| ------------------------------------ | ------ | ----------------------------- |
| id<mark style="color:red;">\*</mark> | number | ID of the financial document. |

#### Headers

| Name                                             | Type   | Description             |
| ------------------------------------------------ | ------ | ----------------------- |
| x-api-key<mark style="color:red;">\*</mark>      | string | Your company's API key. |
| Authentication<mark style="color:red;">\*</mark> | string | Authentication token.   |

#### Request Body

| Name            | Type   | Description                                                                        |
| --------------- | ------ | ---------------------------------------------------------------------------------- |
| selectedParties | int\[] | Array of Party IDs to overwrite. If not included, all parties will be overwritten. |

{% tabs %}
{% tab title="200: OK Parties overwritten successfully." %}

```json
{
    "message": "Overwrite contacts successful."
}
```

{% endtab %}

{% tab title="404: Not Found Could not find a financial document with this ID." %}

```javascript
{
  "message": "Resource Not Found"
}
```

{% endtab %}

{% tab title="404: Not Found Selected parties not found on financial document." %}

```json

{
    "message": "Party ID(s) [2, 3] not found on entity."
}
```

{% endtab %}

{% tab title="404: Not Found No parties exist on financial document." %}

```json
{
    "message": "No parties found on entity."
}
```

{% endtab %}

{% tab title="404: Not Found Selected parties do not exist." %}

```json
{
    "message": "Party ID(s) [20, 24] do not exist."
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api-docs.rightsline.com/entities/financial-document/overwrite-financial-document-parties.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
