---
title: "POST /v2/infra-envs/{infra_env_id}/hosts/{host_id}/instructions"
method: POST
path: "/v2/infra-envs/{infra_env_id}/hosts/{host_id}/instructions"
tags: ["installer"]
---

# POST /v2/infra-envs/{infra_env_id}/hosts/{host_id}/instructions

`POST /v2/infra-envs/{infra_env_id}/hosts/{host_id}/instructions`

## Request

- Base URL: `http://api.openshift.com/api/assisted-install`
- URL: `http://api.openshift.com/api/assisted-install/v2/infra-envs/{infra_env_id}/hosts/{host_id}/instructions`
- Auth: API key in header `X-Secret-Key`

Posts the result of the operations from the host agent.

## Path parameters

- `infra_env_id` string, uuid, required
- `host_id` string, uuid, required

## Headers

- `discovery_agent_version` string

## Request body

- StepReply
  - `step_type` 'connectivity-check' | 'execute' | 'inventory' | 'install' | 'free-network-addresses' | 'dhcp-lease-allocate' | 'api-vip-connectivity-check' | 'tang-connectivity-check' | 'ntp-synchronizer' | 'installation-disk-speed-check' | 'container-image-availability' | 'domain-resolution' | 'stop-installation' | 'logs-gather' | 'next-step-runner' | 'upgrade-agent' | 'download-boot-artifacts' | 'reboot-for-reclaim' | 'verify-vips'
  - `step_id` string
  - `exit_code` integer
  - `output` string
  - `error` string

## Response `204`

Success.

## Other responses

- `400`: Error.
- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Error.
- `405`: Method Not Allowed.
- `500`: Error.
- `501`: Not implemented.
- `503`: Unavailable.

---

[API](https://skmtc.dev/openshift/apis/assistedinstall.md) - [All operations](https://skmtc.dev/openshift/apis/assistedinstall/llms.txt) - [OpenAPI document](https://skmtc.dev/openshift/apis/assistedinstall/revisions/e3a182505ca3?raw)
