# reorder_project

`tools/call` · `POST /agent/v1/projects:reorder`

Move a project in the workspace's priority order: right before or after another project, or first with after null. Give before or after, not both. Returns the project. Needs write access.

- Area: Planning
- Needs the write grant. Idempotent.

## Inputs

- `project` (string, required): A project's slug, such as docs-launch.
- `before` (string): The project to go right before, such as checkout-v2.
- `after` (nullable string): The project to go right after, such as checkout-v2, or null to go first.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "reorder_project",
    "arguments": {
      "project": "docs-launch",
      "after": null
    }
  }
}
```

## HTTP request

The same call over the agent HTTP API, with an agent OAuth access token:

```bash
curl -X POST https://api.qa.clankership.net/agent/v1/projects:reorder \
  -H "Authorization: Bearer $CLANKER_AGENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "project": "docs-launch",
    "after": null
  }'
```
