Palbase Commerce & Promotions · API
POST
/commerce/products/{product_id}/optionsUpsert product option (Size, Color)
Upsert product option (Size, Color)
Called by your server, with the project's secret key.
Path
product_idstring · requiredPath parameter product_id.curl
curl -X POST "https://<your-ref>.palbase.studio/commerce/products/<product_id>/options" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{}'Responses
200Upsert product option (Size, Color)
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation UpsertProductOption of commerce's contract.