# Write down where a fill run stands

Keeps what the page knows about the fill run under way that its conversation does not say: the tab the form is open in, where the user's Submit turn began, and for a recipe replay the page and step it is on and whether it is running, stopped or complete. With `begin`, starts a new run and drops whatever the application held before. Requires authentication.

```http
POST https://hiresweep.com/api/openapi/applications/{applicationId}/fill/run
x-api-key: YOUR_API_KEY
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `applicationId` | path | string | Yes |  |

## Request body

```json
{
  "type": "object",
  "properties": {
    "runId": {
      "type": "string",
      "minLength": 1,
      "description": "The ID of the run: the first message of its conversation."
    },
    "begin": {
      "type": "boolean",
      "description": "Starts a new run, replacing any the application held."
    },
    "tabId": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "applyUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "submitIndex": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "allowSubmit": {
      "type": "boolean"
    },
    "neededUser": {
      "type": "boolean"
    },
    "autoSendWeighed": {
      "type": "boolean"
    },
    "status": {
      "enum": [
        "started",
        "running",
        "stopped",
        "complete"
      ],
      "type": "string",
      "description": "Where a recipe replay stands."
    },
    "pageIndex": {
      "type": "integer",
      "minimum": 0,
      "maximum": 29,
      "description": "The recipe page (from 0) a replay is on."
    },
    "stepIndex": {
      "type": "integer",
      "minimum": 0,
      "maximum": 99,
      "description": "The step (from 0) of that page a replay is on."
    }
  },
  "required": [
    "runId"
  ]
}
```

## Responses

- `200`: The run's state is written down.
