# Change accounting deal-splits id

Corrects a stake's terms. Body, all optional: `basis`, `sharePpm`, `flatAmountMinor`, `notes`. Who the stake is FOR cannot be patched — that makes it a different stake, so retire this one with `post_accounting_deal-splits_id_deactivate` and add its successor. Hold is its own pair of verbs so that the reason is required and the timestamps are checked in pairs.

Access class: `workspace`.

## Endpoint

`PATCH /v1/accounting/deal-splits/{id}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "basis": "string",
    "flatAmountMinor": 1,
    "notes": "string",
    "sharePpm": 1
  },
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "accountId": "",
    "availability": {
      "availableMinor": 1,
      "clawbackShareMinor": 1,
      "collectedMinor": 1,
      "drawnMinor": 1,
      "entitledMinor": 1,
      "isHeld": true,
      "pendingMinor": 1,
      "unpaidMinor": 1
    },
    "basis": "string",
    "createdAt": "string",
    "crmUserId": 1,
    "deactivatedAt": "string",
    "dealId": 1,
    "detail": {},
    "externalParty": "string",
    "flatAmountMinor": 1,
    "held": true,
    "heldReason": "string",
    "id": 1,
    "notes": "string",
    "partyKind": "string",
    "sharePpm": 1,
    "status": "string",
    "updatedAt": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
