Set product availability
set_product_availabilityChange a product's availability to available, sold out today, or sold out indefinitely. Preview changes with a dry run, then apply with the returned digest.
Instructions
Mark a product available or sold out (today / indefinitely).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Preview by default. Apply requires the exact returned planDigest. | dry-run |
| productId | Yes | ||
| locationId | No | ||
| planDigest | No | Exact digest returned by a dry-run of the same arguments. | |
| availability | Yes | ||
| confirmationToken | No | Required exact phrase for destructive, paid, or release operations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| mode | Yes | ||
| status | Yes | ||
| changes | Yes | ||
| summary | Yes | ||
| operation | Yes | ||
| planDigest | Yes | ||
| environment | Yes | ||
| nextActions | Yes | ||
| schemaVersion | Yes |