---
title: "Create auto-approval product config"
method: POST
path: "/samples/product-config"
tags: ["Samples"]
---

# Create auto-approval product config

`POST /samples/product-config`

Create the auto-approval rule for one product. Requires `read_write` scope and a single shop. `productId` must not already have a config in this shop — a duplicate returns 409 `PRODUCT_CONFIG_EXISTS`; use `PUT /samples/product-config/{config_id}` to change an existing rule. `idealCreatorProfileIds` that don't belong to this shop are dropped rather than linked.

## Request body

- PublicProductConfigCreateRequest — Create body — the portal's upsert body plus the product it applies to. The portal keys product config by ``(shop_id, product_id)`` and takes the product from the URL; the public surface exposes stable numeric config IDs instead, so ``productId`` moves into the create body.
  - `monthlySampleLimit` integer, nullable
  - `dailyApprovalTarget` integer, nullable
  - `idealCreatorProfileIds` integer[], nullable
  - `config` ProductConfigMinCriteria
    - `minGmv` number, nullable
    - `minPostRate` number, nullable
  - `productId` string, required

## Response `201`

Successful Response

- ProductConfigResponse
  - `success` boolean
  - `data` ProductConfigItem, required
    - `id` integer, required
    - `productId` string, required
    - `productName` string, nullable
    - `sku` string, nullable
    - `productImage` string, nullable
    - `monthlySampleLimit` integer, nullable
    - `dailyApprovalTarget` integer, nullable
    - `usedThisMonth` integer
    - `idealCreatorProfiles` IdealProfileRef[]
      - `id` integer, required
      - `name` string, required
    - `config` ProductConfigMinCriteria
      - `minGmv` number, nullable
      - `minPostRate` number, nullable
    - `createdAt` string, nullable
    - `updatedAt` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/reacherapp/apis/reacher-data-api.md) · [All operations](https://skmtc.dev/reacherapp/apis/reacher-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/reacherapp/reacher-data-api/revisions/d4fe3e380424/schema)
