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

## Request

- Base URL: `https://api.teamohana.us` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teamohana.us/{domain}/v1/scenarios/{id}/upload/pigment`
- Auth: HTTP bearer

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.dev/teamohana/apis/teamohana-public-api.md) - [All operations](https://skmtc.dev/teamohana/apis/teamohana-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/teamohana/apis/teamohana-public-api/revisions/87f9835cbb94?raw)
