# Set the entity's identity

Source: https://amanucci.com/nl/docs/developers/api/settings/setEntityIdentity

## POST /v1/entities/{entityId}/identity

Set the entity's identity

Set the entity's name, enterprise number, postal address and Peppol participant id: the facts of the seller party these books ARE, which every invoice prints as the seller and the returns declare, written as one edit of that party at the `sellerSeq` read, with its revision. The organisation's owner or a firm accountant holding `settings.policy` (a member or a staffer meets 403 `authority-required`), the VAT number's rule; the VAT number itself is `setEntityVatNumber`'s. Every changed fact in one call: an absent member keeps its value, a `null` clears it. A head that has moved is 409 `party_conflict` with nothing written; facts already held are duplicate-ok. An enterprise number already stored never moves (409 `entity_identity_frozen`), and one another entity's seller holds is 409 `party_company_onboarded`, one company keeping one set of books, in words that name no other firm or entity; one with wrong check digits, a partial address or a blank name is 422 `party_invalid`. Answers the entity as `readEntity` reads it. Not a signed act.

Operation ID: `setEntityIdentity`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  }
]
```

### Request body

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/SetEntityIdentity"
      }
    }
  }
}
```

### Responses

#### 200 The entity as now stored.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/Entity"
    }
  }
}
```

#### 401 Dead or absent credential (`unauthenticated`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 409 The world is not in the state the request assumed: a stale `expectedSeq`, or a transition already made.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
