---
title: "Upload Terraform plan output (self-hosted)"
method: PUT
path: "/self-hosted/terraform/plans/{key}/output"
tags: ["Self-Hosted Runners"]
---

# Upload Terraform plan output (self-hosted)

`PUT /self-hosted/terraform/plans/{key}/output`

Uploads a Terraform plan output in raw bytes (`[]byte`) to S3.  
The request body must be sent as `application/octet-stream`.

## Path parameters

- `key` string, required

## Response `200`

Plan output uploaded successfully

## Other responses

- `400` — Bad Request Error
- `401` — Unauthorized Error
- `403` — Insufficient permissions
- `500` — Internal Server Error

---

[API](https://skmtc.net/firefly/apis/api-gateway.md) · [All operations](https://skmtc.net/firefly/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/firefly/api-gateway/revisions/eea119b4113f/schema)
