# Plan how to fill the fields HireSweep already knows on the open form

Matches the fields earlier applications to this form taught HireSweep against the elements of the application tab's latest snapshot, and returns the steps that fill them from the candidate's own data. The steps are for the HireSweep page to run through the browser extension; the agent that fills the form is never sent them. Requires authentication.

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

## Parameters

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

## Request body

```json
{
  "type": "object",
  "properties": {
    "elements": {
      "type": "array",
      "maxItems": 400,
      "items": {
        "type": "object",
        "properties": {
          "ref": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32
          },
          "role": {
            "type": "string",
            "maxLength": 40
          },
          "name": {
            "type": "string",
            "maxLength": 500
          },
          "context": {
            "type": "string",
            "maxLength": 500
          },
          "options": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "type": "string",
              "maxLength": 500
            }
          },
          "disabled": {
            "type": "boolean"
          }
        },
        "required": [
          "ref",
          "role"
        ]
      },
      "description": "The elements of the application tab's latest snapshot."
    }
  },
  "required": [
    "elements"
  ]
}
```

## Responses

- `200`: The steps that fill the known fields, and the labels that found no single field on the page.
