- Authentication
- Overview
- PAM asset category
- Asset family
- Asset
- Asset attribute
- Asset attribute option
- Asset media file
- PAM asset tag
- PAM asset
- PAM asset reference file
- PAM asset variation file
- Association type
- Attribute group
- Attribute
- Attribute option
- Category
- Channel
- Currency
- Family
- Family variant
- Locale
- Measure family
- Measurement family
- Product media file
- Product model
- Product
- Published product
- Reference entity
- Reference entity media file
- Reference entity attribute
- Reference entity attribute option
- Reference entity record
- System
- Catalogs
- Catalog products
- Product [identifier]
- Product [uuid]
Update/create an attribute of a given asset family
PATCH
/api/rest/v1/asset-families/{asset_family_code}/attributes/{code}
Asset attribute
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/api/rest/v1/asset-families//attributes/' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
201 - Example 1
{}
Request
Path Params
asset_family_code
stringÂ
required
code
stringÂ
required
Body Params application/json
allowed_extensions
array[string]
optional
media_file
code
stringÂ
required
decimals_allowed
booleanÂ
optional
number
Default:
false
is_read_only
booleanÂ
optional
Default:
false
is_required_for_completeness
booleanÂ
optional
Default:
false
is_rich_text_editor
booleanÂ
optional
text
is_textarea
booleanÂ
optional
text
Default:
false
labels
objectÂ
optional
Default:
{}
localeCode
stringÂ
optional
localeCode
max_characters
integerÂ
optional
text
max_file_size
stringÂ
optional
media_file
Default:
null
max_value
stringÂ
optional
number
Default:
null
media_type
enum<string>Â
required
media_link
attribute type, it is the type of the media behind the url, to allow its preview in the PIM. For the media_file
attribute type, it is the type of the file.Allowed values:
imagepdfyoutubevimeoother
min_value
stringÂ
optional
number
Default:
null
prefix
stringÂ
optional
media_link
attribute type. The common url root that prefixes the link to the mediaDefault:
null
suffix
stringÂ
optional
media_link
attribute type. The common url suffix for the mediaDefault:
null
type
enum<string>Â
required
Allowed values:
textmedia_linknumbermedia_filesingle_optionmultiple_optionsreference_entity_single_linkreference_entity_multiple_linksboolean
validation_regexp
stringÂ
optional
text
Default:
null
validation_rule
enum<string>Â
optional
text
Allowed values:
emailurlregexpnone
Default:
none
value_per_channel
booleanÂ
optional
Default:
false
value_per_locale
booleanÂ
optional
Default:
false
Examples
Responses
🟢201Created
application/json
Body
object {0}
🟢204No content to return
🟠401Authentication required
🟠415Unsupported Media type
🟠422Unprocessable entity
Modified at 2023-08-15 05:53:55