# Change a request (https://notert.io/docs/api/reference/change-a-request)

`PATCH /api/v1/requests/{id}`

Changes the title, details, board, tags, owners or expected day you send, or adds pictures, and keeps the rest, as the token's holder, on the version you read. The changes commit whole or not at all: a refusal of any of them saves none, so the call can be sent again as it was. A change made since you read it is EDITED_MEANWHILE. A change that adds pictures, sent again with the same Idempotency-Key after its answer was lost, adds them once and answers the request as it stands. Where the change is made but the request can't be read back for the answer, the answer holds its id alone, and a get reads the rest.

Access: A token with requests:manage.

## Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The request's id. Where an endpoint takes one, its key as its page shows it, such as REQ-44, works too. At most 64 characters. |

## Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string | No | A key of your own for this call, such as a UUID, sent again with a call made again after its answer was lost, so it stores and sends once and answers what the first stored. The same key with other words names another record. Send it or an id in the body, not both. At least 1 character. At most 255 characters. |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `version` | string | No | The version a read of the request answered, so a change made since you read it is refused rather than written over. Without one, only a change made to its details during the call itself is. At least 1 character. At most 64 characters. |
| `title` | string | No | What the request asks for, in a line. At least 1 character. At most 150 characters. |
| `details` | string | No | What the request says beyond its title, in Markdown. At most 5000 characters. |
| `boardId` | string | No | The board to move it to. At most 64 characters. |
| `tagIds` | string[] | No | Every tag it should wear, by id, replacing the ones it wears: keep the ids a read answered for those that should stay. Empty takes every tag off. |
| `ownerIds` | string[] | No | Every teammate who should own it, by their m_ id from GET /teammates, replacing its owners: keep the ids a read answered for those who should stay. A contact's c_ id is refused. A teammate added is told and follows it. Empty leaves it with no owner. |
| `estimatedDate` | date or null | No | The day the team expects to ship it, as YYYY-MM-DD, or null to clear it. Left out, it stays. |
| `pictureUrls` | uri[] | No | Public https addresses of pictures to add beside those it keeps (JPEG, PNG, GIF or WebP, of no more pixels than 3840 x 2160, up to 10 MB each), at most 10 and what the plan's count leaves once those taken off are gone, which the server fetches from the open web. One that can't be fetched, isn't a picture or is too large is PICTURE_REFUSED, and nothing changes. Default []. |
| `removeAttachmentIds` | string[] | No | Files to take off it, pictures or documents, by the attachmentId a read answers for each. To replace a picture, name the old one here and the new one in pictureUrls. One that isn't on it is UNKNOWN_FILES, and nothing changes; any while a report to Notert names the request is HELD_FOR_NOTERT. Default []. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | The request's id. Where an endpoint takes one, its key as its page shows it, such as REQ-44, works too. |
| `key` | string | What people call the request by, as its page shows it. Every endpoint that takes a request's id takes it too. |
| `title` | string | What the request asks for, in a line. |
| `details` | string | What the request says beyond its title, in Markdown. |
| `status` | string | Where the request stands, from a new one to one the team completed or closed. One of: `pending`, `in_review`, `planned`, `in_progress`, `completed`, `closed`. |
| `boardId` | string | The board the request is on. |
| `parentId` | string or null | The request it is a sub-request of, or null for a top-level request. |
| `boardUrl` | string or null | Its page on the public board, at the workspace's own domain once one is connected. Null while a stranger can't open it: hidden, waiting for review or on a private board. |
| `authorId` | string or null | Who filed it, as the people endpoints name them: a customer's c_ id or a teammate's m_ id. Null once neither stands, as after the customer is erased. |
| `votes` | integer | How many people voted for it. |
| `createdAt` | date-time | When it was filed. |
| `updatedAt` | date-time | When it last changed, such as its title, details, status or board: the moment its version names. A vote or a comment doesn't change it. |
| `version` | string | Its version as read now, which a change sends back, so a change made since is refused rather than written over. One request's answers carry it; a page's don't. |
| `tagIds` | string[] | The ids of the tags it wears, in the workspace's order of its tags. |
| `ownerIds` | string[] | The teammates who own it, in the order they were added, by their m_ ids from GET /teammates and the people endpoints. |
| `estimatedDate` | date or null | The day the team expects to ship it, as YYYY-MM-DD, or null for none. |
| `hidden` | boolean | Whether the team keeps it off the public board. One on a private board, or waiting for review, isn't shown there either way. |
| `heldForReview` | boolean | Whether it waits for a moderator's review, off the public board until approved: held as it was posted, after an edit, or once reports sent it back. One a moderator removed is NOT_FOUND. |
| `attachments` | object[] | Its pictures and other files, in the order they were attached, every one the team sees on its page in the app. One request's answers carry them; a page's don't. |
| `attachments.attachmentId` | string | The file's id, which stays the same while its url may change from one read to the next. |
| `attachments.name` | string | The file's name. |
| `attachments.type` | string | The file's content type. |
| `attachments.size` | integer | The file's size in bytes. |
| `attachments.url` | string or null | Where the file opens. A file the public board may show keeps its address; one only the team sees opens until the end of the next day, so download what you keep rather than its address, and read the request again for a fresh one. Null while it can't be opened from outside the app: a document still being checked for safety, or a file a customer sent that waits for review or that the team keeps to itself, which open only in the app. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 400 | `IDEMPOTENCY_KEY_REFUSED` | Send an Idempotency-Key of 1 to 255 visible characters, or an id of your own in the body, not both. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `BOARD_NOT_REACHED` | This API token works only on the boards it was made for. Name one of them, or create a token that reaches this one in the workspace's settings. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't change or delete requests, their status or their place on the roadmap. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `NO_SEAT` | This workspace's plan has no seat for you. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 404 | `NOT_FOUND` | Not Found. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 409 | `EDITED_MEANWHILE` | It changed since you read it. Read it again, then send your change once more. Its data holds `details`. |
| 409 | `HELD_FOR_NOTERT` | A report to Notert names this request, so its files stay until that review ends. Send the change without removeAttachmentIds. |
| 409 | `MERGED` | The request was merged into another, which holds its votes, comments and status now. Send this to that one. |
| 409 | `OWNERS_FULL` | That is more than 10 owners, counting those a teammate added since. Read it again, then send your change once more. |
| 409 | `PICKS_GONE` | A board, tag or teammate it names isn't in this workspace. Pick another, or leave it out. Its data holds `board`, `tagIds`, `ownerIds`, `author`. |
| 409 | `TAGS_FULL` | That is more than 50 tags, counting those a teammate added since. Read it again, then send your change once more. Its data holds `requestId`. |
| 409 | `TOO_MANY_FILES` | That is more files than the workspace's plan takes. Its data holds `limit`. |
| 409 | `UNKNOWN_FILES` | A file named to take off isn't on it, so nothing changed. If an earlier call took it off, that call's change stands; otherwise read it again for its files' ids. Its data holds `attachmentIds`. |
| 422 | `PICTURE_REFUSED` | A picture in pictureUrls couldn't be attached, so nothing was written. data.url names it and data.reason says why. Its data holds `url`, `reason`. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X PATCH https://app.notert.io/api/v1/requests/8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40 \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "version": "2026-11-10 14:05:00.123456",
  "title": "Dark mode",
  "details": "Easier on the eyes when we work late.",
  "boardId": "2d9a7c41-6b3e-4e8f-a1c5-0f4b8d2e6a17",
  "tagIds": [
    "7a3e1c9b-4d2f-4b8a-9e6c-2f1d5b7a3c08"
  ],
  "ownerIds": [
    "m_5k2m9p4q7r1t"
  ],
  "estimatedDate": "2026-12-15",
  "pictureUrls": [
    "https://example.com/shots/dark-mode.png"
  ],
  "removeAttachmentIds": [
    "6d2f8b4a-9e1c-4a7d-b3f5-2c8e0a6d4b19"
  ]
}'
```

## Example response 200

```json
{
  "id": "8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40",
  "key": "REQ-44",
  "title": "Dark mode",
  "details": "Easier on the eyes when we work late.",
  "status": "planned",
  "boardId": "2d9a7c41-6b3e-4e8f-a1c5-0f4b8d2e6a17",
  "parentId": "5e1b9f3a-7c2d-4a6e-8b0f-3d4c6a8e1f92",
  "boardUrl": "https://feedback.example.com/p/8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40",
  "authorId": "c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70",
  "votes": 42,
  "createdAt": "2026-11-02T10:15:00.123Z",
  "updatedAt": "2026-11-10T14:05:00.123Z",
  "version": "2026-11-10 14:05:00.123456",
  "tagIds": [
    "7a3e1c9b-4d2f-4b8a-9e6c-2f1d5b7a3c08"
  ],
  "ownerIds": [
    "m_5k2m9p4q7r1t"
  ],
  "estimatedDate": "2026-12-15",
  "hidden": false,
  "heldForReview": false,
  "attachments": [
    {
      "attachmentId": "6d2f8b4a-9e1c-4a7d-b3f5-2c8e0a6d4b19",
      "name": "dark-mode.webp",
      "type": "image/webp",
      "size": 48213,
      "url": "https://notert-content.com/requests/6d2e9a1c/0b6f3a2e.webp"
    }
  ]
}
```
