# Change definitions key rows rowId debt-schedules scheduleId

Rewrite one business debt schedule. Same body and the same revision check as creating it — this is the door an edit goes through, and a stale revision loses.

Access class: `def:read`.

## Endpoint

`PATCH /v1/definitions/{key}/rows/{rowId}/debt-schedules/{scheduleId}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| rowId | path | string | Yes |
| scheduleId | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "content": {
      "as_of_date": "string",
      "currency": "string",
      "entries": [
        "string"
      ],
      "no_debt": true
    },
    "revision": 1.5
  },
  "params": {
    ":key": "string",
    ":rowId": "",
    ":scheduleId": ""
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "content": "string",
    "created_at": "string",
    "document_id": "",
    "id": "",
    "revision": 1,
    "source": "string",
    "source_detail": "string",
    "status": "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"
}
```
