Edit an existing producer offer

Partial update — only fields present in the body are changed. Ownership is enforced by scoping the UPDATE to the caller's organization_id; an offer_id belonging to a different org returns 404, not 403.

patch/api/offers/edit/

Request

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

Request body

offer_idstring required
headlinestring
detailstring nullable
destination_urlstring uri
price_usdnumber nullable
list_price_usdnumber nullable
starts_atstring date-time nullable
expires_atstring date-time nullable
promo_codestring nullable
offer_typesstring[]

Response

Updated (or no-op if no editable fields were present in the body).

okboolean

Changes

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