action api2cart_product_option_add { label: "ProductOptionAdd" description: "Add product option from store." provider: api2cart method: POST path: "/product.option.add.json" encoding: json input: { type: "object" properties: { avail: { type: "boolean" } clear_cache: { type: "boolean" } default_option_value: { type: "string" } description: { type: "string" } name: { type: "string" } option_values: { type: "string" } product_id: { type: "string" } required: { type: "boolean" } sort_order: { type: "integer" } type: { type: "string" enum: ["option_type_select", "option_type_text", "option_type_radio", "option_type_checkbox", "option_type_textarea", "option_type_readonly", "option_type_multiselect", "option_type_multicheckbox", "option_type_file", "option_type_date", "option_type_datetime", "option_type_time"] } } required: ["name", "type"] additionalProperties: false } output: { type: "object" properties: { result: { type: "object" properties: { option_id: { type: "string" } product_option_id: { type: "string" } } } return_code: { type: "integer" } return_message: { type: "string" } } } }