Update product (offer) lifecycle state
update_product_stateChange a Fourthwall product's lifecycle state between PUBLIC and HIDDEN, keeping its sold-out flag intact. Use it to list or unlist an item on the storefront.
Instructions
Rate limit: 100 requests / 10 seconds per shop. See Rate limiting.
Transitions the product between PUBLIC and HIDDEN. Use DELETE /products/{productId} to archive — ARCHIVED is not reachable here. The sold-out (available) flag is preserved; flip it via PUT /products/{productId}/availability. Idempotent: no-op if the product is already in the requested state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Target lifecycle state. `PUBLIC` makes the product visible on the storefront; `HIDDEN` keeps it unlisted. The sold-out (`available`) flag is preserved across the transition — use `PUT /products/{productId}/availability` to flip it. | |
| account | No | Exact private shop profile label; not a provider identity or authorization proof. | |
| confirm | No | Explicit approval for this exact provider effect or local private-file operation. | |
| payload | No | Complete current native JSON body; cannot mix with native body flags or payload_file. | |
| product_id | Yes | Native productId | |
| payload_file | No | Absolute regular non-symlink native JSON body file, at most1MiB. Cannot mix with payload or body flags. |