younifyd
Menu

Create products/options

Create products/options

POST/V1/products/options

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Create products/options action (under Products).
  3. Fill in the fields below, then reference the result from later steps as {{createProductsOptions.response.data}}.

Fields

baseUrlstring

The API host this action calls. Override to point at a different environment.

Default "/rest/default"

bodystring

The request body content (for POST, PUT, PATCH requests).

forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

Returns 200 with an object. Read it in later steps with {{createProductsOptions.response.data.<field>}}.

product_skustring

Product SKU

option_idinteger

Option id

titlestring

Option title

typestring

Option type

sort_orderinteger

Sort order

is_requireboolean

Is require

pricenumber

Price

price_typestring

Price type

skustring

Sku

file_extensionstring

File extension

max_charactersinteger

Max characters

image_size_xinteger

Image x size

image_size_yinteger

Image Y size

valuesarray<object>

Values

titlestringrequired

Option title

sort_orderintegerrequired

Sort order

pricenumberrequired

Price

price_typestringrequired

Price type

skustring

Sku

option_type_idinteger

Option type id

extension_attributesobject

ExtensionInterface class for @see \Magento\Catalog\Api\Data\ProductCustomOptionInterface

json
{
  "product_sku": "string",
  "title": "string",
  "type": "string",
  "sort_order": 0,
  "is_require": false,
  "option_id": 0,
  "price": 0,
  "price_type": "string",
  "sku": "string",
  "file_extension": "string",
  "max_characters": 0,
  "image_size_x": 0
}

Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.

Create products/options — Adobe Commerce — Documentation