---
title: "Upload Colourway Pattern"
method: POST
path: "/questionnaires/jobs/{job_id}/colourway-pattern"
tags: ["questionnaires"]
---

# Upload Colourway Pattern

`POST /questionnaires/jobs/{job_id}/colourway-pattern`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/questionnaires/jobs/{job_id}/colourway-pattern`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Save a colourway pattern image to Backblaze B2.

Same persistence path as ``/colourway-swatch`` but image-only (no picker hex);
the swatch is tagged ``type='pattern'`` in ``platform_payload.coverColourwaySwatches``.

## Path parameters

- `job_id` string, uuid, required

## Request body `multipart/form-data`

- BodyUploadColourwayPatternQuestionnairesJobsJobIdColourwayPatternPost
  - `swatch_key` string, required: UI key e.g. cw0-s0 (colourway index + slot)
  - `file` string, binary, required: Pattern image (PNG/JPEG/WebP)
  - `type` string: 'colourway' or 'pattern'

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
