Create attribute template
Creates a new attribute template that defines the structure and fields for attributes. Templates specify field types (image, text, html, boolean, number, color) and can be associated with resources like products, categories, or tags. Reserved field keys (key, name, description) cannot be used.
/api/v1/{team_slug}/{app_slug}/attributesAuthorizationBearer token · headerrequiredManagement API token, sent as Authorization: Bearer <token>.
app_slugstringrequiredApp slug
team_slugstringrequiredTeam slug
application/jsonAttribute data
fieldsinternal_pkg_webserver_v1.InputAttributeField[] | nullShow propertiesHide properties
internal_pkg_webserver_v1.InputAttributeFieldkeystringrequiredKey of the attribute template field
namestringrequiredName for the attribute template field
typestringrequiredThe type of the attribute template field. This field defines how we should treat the field when you create, update or list attributes
booleantexthtmlnumberimagecolorimage_objectfilterablebooleankeystringrequiredKey of the attribute
namestringrequiredName of the attribute
resourcesstring[] | nulltranslatablebooleantypestringrequiredName of the attribute
Attributes
datagithub_com_enadhq_nabbit_internal_pkg_webserver_models.AttributeTemplaterequiredShow propertiesHide properties
attributesgithub_com_enadhq_nabbit_internal_pkg_webserver_models.Attribute[] | nullShow propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.Attributecreated_atstringdescriptionstring | nullfilterableboolean | nullidstringkeystringnamestring | nulltemplate_keystringtemplate_namestringtranslatableboolean | nulltranslationsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.AttributeTranslationsShow propertiesHide properties
descriptiongithub_com_enadhq_nabbit_internal_pkg_webserver_models.Translation[]Show propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.Translationidstringlocalestringvaluestringnamegithub_com_enadhq_nabbit_internal_pkg_webserver_models.Translation[]updated_atstring | nullvaluesobject | nullcreated_atstringfieldsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.AttributeTemplateField[] | nullShow propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.AttributeTemplateFieldcreated_atstringidstringkeystringnamestringtypestringupdated_atstring | nullfilterablebooleanidstringkeystringnamestringresourcesstring[] | nulltranslatablebooleantypestringupdated_atstring | nulldetailsstring[]Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes
successbooleanrequiredSuccessful response
datagithub_com_enadhq_nabbit_internal_pkg_webserver_models.AttributeTemplaterequiredShow propertiesHide properties
attributesgithub_com_enadhq_nabbit_internal_pkg_webserver_models.Attribute[] | nullShow propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.Attributecreated_atstringdescriptionstring | nullfilterableboolean | nullidstringkeystringnamestring | nulltemplate_keystringtemplate_namestringtranslatableboolean | nulltranslationsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.AttributeTranslationsShow propertiesHide properties
descriptiongithub_com_enadhq_nabbit_internal_pkg_webserver_models.Translation[]Show propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.Translationidstringlocalestringvaluestringnamegithub_com_enadhq_nabbit_internal_pkg_webserver_models.Translation[]updated_atstring | nullvaluesobject | nullcreated_atstringfieldsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.AttributeTemplateField[] | nullShow propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.AttributeTemplateFieldcreated_atstringidstringkeystringnamestringtypestringupdated_atstring | nullfilterablebooleanidstringkeystringnamestringresourcesstring[] | nulltranslatablebooleantypestringupdated_atstring | nulldetailsstring[]Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes
successbooleanrequiredInvalid request (e.g. bad UUID, validation error)
detailsstring[]messagestringsuccessbooleanrequiredUnauthorized access
detailsstring[]messagestringsuccessbooleanrequiredInternal server error
detailsstring[]messagestringsuccessbooleanrequired