> 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/contacts/persons.md).

# Persons

## Gets all persons

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

This endpoint allows you to **get all persons** from Moderan

#### Query Parameters

| Name       | Type   | Description |
| ---------- | ------ | ----------- |
| DOMAIN\_ID | String |             |

## Create a person <a href="#create-an-organization" id="create-an-organization"></a>

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

This endpoint allows you to **create a Person**

**Path Parameters**

| Name       | Type   | Description         |
| ---------- | ------ | ------------------- |
| DOMAIN\_ID | String | Domain ID of client |

## Update a person <a href="#update-an-organization" id="update-an-organization"></a>

<mark style="color:orange;">`PUT`</mark>  `https://www.moderan.net/api/domains/DOMAIN_ID/propertysets/0/persons/PERSON_ID`

**Path Parameters**

| Name       | Type   | Description             |
| ---------- | ------ | ----------------------- |
| DOMAIN\_ID | String | Domain ID of client     |
| PERSON\_ID | String | Person ID being changed |

POST/PUT payload

```
{
    "fullName": "Sample Person1",
    "name": "Sample",
    "surname": "Person1",
    "title": null,
    "organization": null,
    "address": {
        "street": null,
        "street2": null,
        "postalCode": null,
        "city": null,
        "county": null,
        "country": null,
        "countryText": null
    },
    "email": "",
    "phone1": "",
    "phone2": "",
    "position": "",
    "fields": [
        {
            "id": 842,
            "fieldId": 4814,
            "fieldName": "Residential",
            "booleanValue": true,
            "dateValue": null,
            "stringValue": null,
            "numberValue": null,
            "optionIds": []
        }
    ]
}
```

Response: ​​204: No Content\
​
