24/7 Support: 800.608.6482

Navigation


AttributeTemplateAttribute_Insert

This function inserts a new attribute option into an existing attribute template.

Request Parameters

store_code Type:
String
Title:
Store Code
Store code to run the function against. Found in the Miva Admin under Settings > Store Details
function Type:
String
Title:
Attribute Template Attribute Insert
The name of the function being executed
attributetemplate_id Type:
Number
Title:
Attribute Template Id
The id number of the attribute template being loaded
code Type:
String
Title:
Code
Attribute Template attribute code
type Type:
String
Title:
Attribute Selector Type
Attribute selector type
prompt Type:
String
Title:
Attribute Prompt
The prompt offered for selecting the attribute
price Type:
Number
Title:
Attribute Retail Price
The price of the attribute
cost Type:
Number
Title:
Attribute Cost
The cost of the attribute
weight Type:
Number
Title:
Attribute Weight
The weight of the attribute
required Type:
Boolean
Title:
Attribute Required
Boolean value indicating if selecting the product attribute is required for purchase
inventory Type:
Boolean
Title:
Attribute Inventory
Boolean value indicating if the product attribute is recorded in inventory
image Type:
String
Title:
Attribute Image
Filepath for Attribute Image
default Type:
Boolean
Title:
Attribute Template Attribute Default
Boolean value indicating if the attribute is the default selection for the Attribute Template

Response Parameters

success Type:
Boolean
Title:
Status Response
Boolean value indicating if the api request was successful

Example Request

Example Response

Error Responses

error code:
MER-UTL-QUOTES-00032
error message:
Attribute template not found
description:
Attribute template not found
error code:
MER-ATT-JSN-00036
error message:
Unable to load attribute template attribute: One of AttributeTemplateAttribute_ID, Edit_AttributeTemplateAttribute or AttributeTemplateAttribute_Code must be specified
description:
Attribute template attribute not found
error code:
MER-JSN-00018
error message:
Invalid value for field 'Code': An attribute with the code 'custom_rips' already exists
description:
Attribute template attribute code already exists

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2023 Miva©, Miva Merchant©, MivaPay©, MivaCon©, Camp Miva ℠, Miva, Inc. All Rights Reserved.