Update an offer's status

Status-only transition (active / paused / expired). For any other field, use PATCH /api/offers/edit/. Ownership is enforced the same way as edit — a mismatched offer_id/org pair returns 404.

patch/api/offers/update/

Request

  • Base URL: https://productindex.ai
  • URL: https://productindex.ai/api/offers/update/
  • Auth: one of:
    • API key in cookie authjs.session-token
    • HTTP bearer

Request body

offer_idstring required
status'active' | 'paused' | 'expired' required

Response

Status updated.

okboolean

Changes

No recorded changes to this operation across all 1 revision of this API.