---
title: "POST /v2/clusters/{cluster_id}/logs"
method: POST
path: "/v2/clusters/{cluster_id}/logs"
tags: ["installer"]
---

# POST /v2/clusters/{cluster_id}/logs

`POST /v2/clusters/{cluster_id}/logs`

Agent API to upload logs.

## Path parameters

- `cluster_id` string, uuid, required

## Query parameters

- `logs_type` 'host' | 'controller', required
- `infra_env_id` string, uuid
- `host_id` string, uuid

## Response `204`

Success.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Error.
- `405` — Method Not Allowed.
- `409` — Error.
- `500` — Error.
- `503` — Unavailable.

---

[API](https://skmtc.net/openshift/apis/assistedinstall.md) · [All operations](https://skmtc.net/openshift/apis/assistedinstall/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openshift/assistedinstall/versions/9d0b4936ca97/schema)
