# Move a request on the roadmap (https://notert.io/docs/api/reference/move-a-request-on-the-roadmap)

`PUT /api/v1/requests/{id}/roadmap-position`

Moves a request's card on the roadmap as the team drags it: to the top of a column, or right after another request GET /roadmap lists there, in its own column to reorder it or in another to change its status too. A new column tells the request's followers and emails the person it is from, as a status change does. Its sub-requests keep their own statuses; in the completed column, the answer says how many of them on boards the token reaches are still open, so you can move those too. Sending the same move again leaves it in the same place and tells no one twice. A request merged into another, removed by a moderator or on a board the token doesn't reach is NOT_FOUND, and a request to follow that isn't a card in that column is CONFLICT.

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. |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | string | Yes | The column to put it in, by its status: planned, in_progress or completed. Its own column reorders it there. One of: `planned`, `in_progress`, `completed`. |
| `afterId` | string or null | No | The request it goes right after, a card GET /roadmap lists in that column. Null or left out, it goes to the top. At most 64 characters. |

## 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. |
| `status` | string | The column the request is in now. One of: `planned`, `in_progress`, `completed`. |
| `openSubRequests` | integer | Set once it is completed or closed: how many of its sub-requests are still open, which keep their own statuses. Left out when it couldn't be read just now; the move stands either way. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 400 | `FOLLOWS_ITSELF` | A request can't follow itself. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 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 | `CONFLICT` | afterId isn't a card in that column. Read the column with GET /roadmap and name one there, or send null to put it at the top. |
| 409 | `MERGED` | The request was merged into another, which holds its votes, comments and status now. Send this to that one. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X PUT https://app.notert.io/api/v1/requests/8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40/roadmap-position \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "planned",
  "afterId": "5b1e9d3a-7c2f-4a6e-8d0b-3f5a7c9e1b24"
}'
```

## Example response 200

```json
{
  "id": "8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40",
  "status": "planned",
  "openSubRequests": 2
}
```
