Skip to main content
PATCH
/
api
/
catalog
/
batches
/
{key}
/
records
/
{record_key}
Patch Batch Record
curl --request PATCH \
  --url https://api.merchantops.ai/api/catalog/batches/{key}/records/{record_key} \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "ctx": {},
      "input": "<unknown>"
    }
  ]
}

Headers

authorization
string | null
X-Organization-ID
string | null

Path Parameters

key
string
required
record_key
string
required

Cookies

stytch_session
string | null

Body

application/json

Reviewer-driven per-record approval transition.

Phase 3 opens this up to approved and pending (re-open) so the in-app review modal can stamp final state record-by-record. reason is required for rejection but optional for the other transitions (where it lands on approval_note).

approval_status
enum<string>
required
Available options:
pending,
approved,
rejected
reason
string | null
Maximum string length: 500

Response

Successful Response