> For the complete documentation index, see [llms.txt](https://apimoderan.gitbook.io/moderan-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apimoderan.gitbook.io/moderan-api/contracts/contracts/contract-persons.md).

# Contract persons

## Get persons related to contract&#x20;

<mark style="color:blue;">`GET`</mark>`https://www.moderan.net/api/domains/DOMAIN_ID/propertysets/0/contracts/CONTRACT_ID/persons`

#### Path Parameters

| Name                                           | Type   | Description             |
| ---------------------------------------------- | ------ | ----------------------- |
| DOMAIN\_ID<mark style="color:red;">\*</mark>   | String | The domain ID of client |
| CONTRACT\_ID<mark style="color:red;">\*</mark> | String | Contract ID             |

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

```javascript

    {
        "contractId": 15820,
        "personId": 7251,
        "role": null,
        "roles": [
            {
                "name": "Authorized signatory",
                "id": 2029
            }
        ],
        "fields": [],
        "name": "Test Person",
        "phone": "  999 999 ",
        "email": "testings@mail.ee",
        "active": null,
        "contract": null
    }
```

{% endtab %}
{% endtabs %}

## Add Person to Rental contract  <a href="#create-an-entry-in-contract-rent-and-fees" id="create-an-entry-in-contract-rent-and-fees"></a>

<mark style="color:green;">`POST`</mark>`https://www.moderan.net/api/domains/DOMAIN_ID/propertysets/0/contracts/CONTRACT_ID/persons/PERSON_ID`

**Path Parameters**

| DOMAIN\_ID<mark style="color:red;">\*</mark>   | int | The domain ID of client |
| ---------------------------------------------- | --- | ----------------------- |
| CONTRACT\_ID<mark style="color:red;">\*</mark> | int | ID of contract          |
| PERSON\_ID<mark style="color:red;">\*</mark>   | int | ID of person            |

{% tabs %}
{% tab title="201: Created" %}

{% endtab %}
{% endtabs %}
