---
title: "Record an install run's stage"
url: https://xovris.ai/docs/api/operations/postinstallrunsbyrunidstage/
---

# Record an install run's stage

`POST /v1/install-runs/{runId}/stage`

Needs a token that can read and change. A token without change access is refused with `token_read_only` and the step to take.

## Parameters

- `runId` (string, path, required)

## Request body

### `application/json`

- `stage` (string ("verified", "removed", "abandoned", "key_minted", "files_written", "test_event_stored"))
- `effort` (Tfe29f2a21e17)
  - `startedAt` (string, required)
  - `inputs` (number, required)
  - `pastes` (number, required)
  - `activeSeconds` (number, required)
  - `route` (string ("pull_request", "wizard"), required)

Example:

```json
{
  "stage": "verified",
  "effort": {
    "startedAt": "string",
    "inputs": 1,
    "pastes": 1,
    "activeSeconds": 1,
    "route": "pull_request"
  }
}
```

## Answers

- `200`: Done. (application/json: T940a7dc67bc6)
- `401`: Not signed in: the token is missing, expired or revoked. The answer says how to get a new one. (application/json: Problem)
- `403`: Signed in, but this token or role may not do this. The answer names the permission it needs. (application/json: Problem)
- `404`: Nothing with that id here, or it belongs to another workspace. Nothing was changed. (application/json: Problem)
- `default`: Any other refusal or failure. The answer says what happened and what to do next. (application/json: Problem)

## A call

The address is https://api.xovris.ai/v1/install-runs/{runId}/stage - put your own value in place of each part in braces.

```sh
curl --request POST \
  --url 'https://api.xovris.ai/v1/install-runs/{runId}/stage' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{"stage":"verified","effort":{"startedAt":"string","inputs":1,"pastes":1,"activeSeconds":1,"route":"pull_request"}}'
```
