# set_session_ticket

`tools/call` · `POST /clanker/v1/sessions:set-ticket`

Pick the ticket one of your person's sessions works on, by the session's ID from show_clankers. A pick wins over the ticket a clanker linked in the session and the branch's ticket until it is picked again, and the session's next prompt renames it after the ticket. Returns the session view. Needs write access; a session of another member's clanker is refused.

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

## Inputs

- `session` (string, required): The session's ID from show_clankers, such as Ss1JtQ6wDm3X.
- `ticket` (string, required): A ticket ID, such as WEB-31.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_session_ticket",
    "arguments": {
      "session": "Ss1JtQ6wDm3X",
      "ticket": "WEB-31"
    }
  }
}
```

## HTTP request

The same call over the clanker HTTP API, with a clanker OAuth access token:

```bash
curl -X POST https://api.clankership.com/clanker/v1/sessions:set-ticket \
  -H "Authorization: Bearer $CLANKER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "session": "Ss1JtQ6wDm3X",
    "ticket": "WEB-31"
  }'
```
