Update attributes
curl --request PATCH \
--url https://wisepim.com/api/public/v1/attributes/{attribute_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>",
"label": "<string>",
"label_localized": {},
"attribute_type": "<string>",
"attribute_group": 1,
"is_required": true,
"is_unique": true,
"is_filterable": true,
"is_searchable": true,
"is_visible": true,
"is_localizable": true,
"sort_order": 123,
"default_value": "<unknown>",
"validation_rules": {},
"options": [
"<unknown>"
],
"operations": [
"<string>"
],
"ai_enrichable": true,
"uom_code_set": 1,
"value_code_set": 1,
"default_unit_code": "<string>",
"allow_new_options_on_import": true,
"allow_new_options_from_ai": true
}
'import requests
url = "https://wisepim.com/api/public/v1/attributes/{attribute_id}"
payload = {
"code": "<string>",
"label": "<string>",
"label_localized": {},
"attribute_type": "<string>",
"attribute_group": 1,
"is_required": True,
"is_unique": True,
"is_filterable": True,
"is_searchable": True,
"is_visible": True,
"is_localizable": True,
"sort_order": 123,
"default_value": "<unknown>",
"validation_rules": {},
"options": ["<unknown>"],
"operations": ["<string>"],
"ai_enrichable": True,
"uom_code_set": 1,
"value_code_set": 1,
"default_unit_code": "<string>",
"allow_new_options_on_import": True,
"allow_new_options_from_ai": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
code: '<string>',
label: '<string>',
label_localized: {},
attribute_type: '<string>',
attribute_group: 1,
is_required: true,
is_unique: true,
is_filterable: true,
is_searchable: true,
is_visible: true,
is_localizable: true,
sort_order: 123,
default_value: '<unknown>',
validation_rules: {},
options: ['<unknown>'],
operations: ['<string>'],
ai_enrichable: true,
uom_code_set: 1,
value_code_set: 1,
default_unit_code: '<string>',
allow_new_options_on_import: true,
allow_new_options_from_ai: true
})
};
fetch('https://wisepim.com/api/public/v1/attributes/{attribute_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"code": "<string>",
"label": "<string>",
"label_localized": {},
"attribute_type": "<string>",
"is_required": true,
"is_unique": true,
"is_filterable": true,
"is_searchable": true,
"is_visible": true,
"group": {
"id": 123,
"name": "<string>"
},
"options": "<unknown>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>",
"detail": [
{}
]
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}Update attributes
PATCH /attributes/. Required scopes: attributes:write.
PATCH
/
api
/
public
/
v1
/
attributes
/
{attribute_id}
Update attributes
curl --request PATCH \
--url https://wisepim.com/api/public/v1/attributes/{attribute_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>",
"label": "<string>",
"label_localized": {},
"attribute_type": "<string>",
"attribute_group": 1,
"is_required": true,
"is_unique": true,
"is_filterable": true,
"is_searchable": true,
"is_visible": true,
"is_localizable": true,
"sort_order": 123,
"default_value": "<unknown>",
"validation_rules": {},
"options": [
"<unknown>"
],
"operations": [
"<string>"
],
"ai_enrichable": true,
"uom_code_set": 1,
"value_code_set": 1,
"default_unit_code": "<string>",
"allow_new_options_on_import": true,
"allow_new_options_from_ai": true
}
'import requests
url = "https://wisepim.com/api/public/v1/attributes/{attribute_id}"
payload = {
"code": "<string>",
"label": "<string>",
"label_localized": {},
"attribute_type": "<string>",
"attribute_group": 1,
"is_required": True,
"is_unique": True,
"is_filterable": True,
"is_searchable": True,
"is_visible": True,
"is_localizable": True,
"sort_order": 123,
"default_value": "<unknown>",
"validation_rules": {},
"options": ["<unknown>"],
"operations": ["<string>"],
"ai_enrichable": True,
"uom_code_set": 1,
"value_code_set": 1,
"default_unit_code": "<string>",
"allow_new_options_on_import": True,
"allow_new_options_from_ai": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
code: '<string>',
label: '<string>',
label_localized: {},
attribute_type: '<string>',
attribute_group: 1,
is_required: true,
is_unique: true,
is_filterable: true,
is_searchable: true,
is_visible: true,
is_localizable: true,
sort_order: 123,
default_value: '<unknown>',
validation_rules: {},
options: ['<unknown>'],
operations: ['<string>'],
ai_enrichable: true,
uom_code_set: 1,
value_code_set: 1,
default_unit_code: '<string>',
allow_new_options_on_import: true,
allow_new_options_from_ai: true
})
};
fetch('https://wisepim.com/api/public/v1/attributes/{attribute_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"code": "<string>",
"label": "<string>",
"label_localized": {},
"attribute_type": "<string>",
"is_required": true,
"is_unique": true,
"is_filterable": true,
"is_searchable": true,
"is_visible": true,
"group": {
"id": 123,
"name": "<string>"
},
"options": "<unknown>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>",
"detail": [
{}
]
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}Authorizations
Use a project API key from Settings > API Access. Send it as Authorization: Bearer wpk_.... See authentication and scopes for setup and permissions.
Headers
Body
application/json
Response
OK

