younifyd
Menu

Create products/attributes

Create products/attributes

POST/V1/products/attributes

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Create products/attributes action (under Products).
  3. Fill in the fields below, then reference the result from later steps as {{createProductsAttributes.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 {{createProductsAttributes.response.data.<field>}}.

extension_attributesobject

ExtensionInterface class for @see \Magento\Eav\Api\Data\AttributeInterface

is_pagebuilder_enabledboolean
is_wysiwyg_enabledboolean

WYSIWYG flag

is_html_allowed_on_frontboolean

The HTML tags are allowed on the frontend

used_for_sort_byboolean

It is used for sorting in product listing

is_filterableboolean

It used in layered navigation

is_filterable_in_searchboolean

It is used in search results layered navigation

is_used_in_gridboolean

It is used in catalog product grid

is_visible_in_gridboolean

It is visible in catalog product grid

is_filterable_in_gridboolean

It is filterable in catalog product grid

positioninteger

Position

apply_toarray<string>

Apply to value for the element

is_searchablestring

The attribute can be used in Quick Search

is_visible_in_advanced_searchstring

The attribute can be used in Advanced Search

is_comparablestring

The attribute can be compared on the frontend

is_used_for_promo_rulesstring

The attribute can be used for promo rules

is_visible_on_frontstring

The attribute is visible on the frontend

used_in_product_listingstring

The attribute can be used in product listing

is_visibleboolean

Attribute is visible on frontend.

scopestring

Attribute scope

attribute_idinteger

Id of the attribute.

attribute_codestring

Code of the attribute.

frontend_inputstring

HTML for input element.

entity_type_idstring

Entity type id

is_requiredboolean

Attribute is required.

optionsarray<object>

Options of the attribute (key => value pairs for select)

labelstringrequired

Option label

valuestringrequired

Option value

sort_orderinteger

Option order

is_defaultboolean

Default

store_labelsarray<object>2 fields

Option label for store scopes

is_user_definedboolean

Current attribute has been defined by a user.

default_frontend_labelstring

Frontend label for default store

frontend_labelsarray<object>

Frontend label for each store

store_idinteger

Store id

labelstring

Option label

notestring

The note attribute for the element.

backend_typestring

Backend type.

backend_modelstring

Backend model

source_modelstring

Source model

default_valuestring

Default value for the element.

is_uniquestring

This is a unique attribute

frontend_classstring

Frontend class of attribute

validation_rulesarray<object>

Validation rules.

keystringrequired

Object key

valuestringrequired

Object value

custom_attributesarray<object>

Custom attributes values.

attribute_codestringrequired

Attribute code

valuestringrequired

Attribute value

json
{
  "attribute_code": "string",
  "frontend_input": "string",
  "entity_type_id": "string",
  "is_required": false,
  "frontend_labels": [
    {
      "store_id": 0,
      "label": "string"
    }
  ],
  "extension_attributes": {
    "is_pagebuilder_enabled": false
  },
  "is_wysiwyg_enabled": false,
  "is_html_allowed_on_front": false,
  "used_for_sort_by": false,
  "is_filterable": false,
  "is_filterable_in_search": false,
  "is_used_in_grid": false
}

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