---
title: "Generate scenario CSV and upload it to pigment"
method: POST
path: "/{domain}/v1/scenarios/{id}/upload/pigment"
tags: ["Scenario"]
---

# Generate scenario CSV and upload it to pigment

`POST /{domain}/v1/scenarios/{id}/upload/pigment`

Generate the CSV export for a single scenario (identical to GET /v1/scenarios/{id}/export with Accept: text/csv) and trigger an async upload to Pigment. Refer to the [Pigment Connector API FAQ](/faq/index.html#pigment-connector-api) for more details.

## Path parameters

- `id` string, nullable, required
- `domain` string, required

## Request body

- object
  - `import-configuration-id` string, required

## Response `200`

A success message describing the result of the upload.

- string

## Other responses

- `400` — Missing or blank x-pigment-api-key header.
- `401` — Unauthorized
- `404` — No such resource found or access denied. Please check the id.
- `500` — Something went wrong. Please contact TeamOhana support.
- `503` — The upload could not be queued. Please retry.

---

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