---
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.

## Changes

- **2025-11-13** `5d8a1641663e` — 1 info
  - added the non-success response with the status `400`
- **2025-02-02** `da8eda34bc5a` — 1 info
  - removed the non-success response with the status `400`

[Change history](https://skmtc.dev/openshift/apis/assistedinstall/changes/v2/clusters/:cluster_id/logs/post.md)

---

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