# Confirm the activity profile

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

## POST /v1/entities/{entityId}/activity-profile

Confirm the activity profile

Confirm the entity's activity profile, or append its next version. The organisation's owner or a firm accountant holding `ledger.manage` (a member or a staffer meets 403 `authority-required`). The caller is the one who confirms: the row's actor. `expectedSeq` is the pinned-row idempotency key: identical retry 200, stale head 409. 422 `activity_profile_invalid` names the refusal: a code off `NN.NNN`, no code at all, or a trait the entity's pack set does not name.

Operation ID: `appendActivityProfile`

### 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/AppendActivityProfile"
      }
    }
  }
}
```

### Responses

#### 200 Duplicate-ok: this exact version was already the head.

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

#### 201 The new head.

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

#### 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"
    }
  }
}
```
