Update value-code-sets
curl --request PATCH \
--url https://wisepim.com/api/public/v1/value-code-sets/{resource_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"code": "<string>",
"description": "<string>",
"allow_new_values": true,
"new_value_handling": "<string>"
}
'import requests
url = "https://wisepim.com/api/public/v1/value-code-sets/{resource_id}"
payload = {
"name": "<string>",
"code": "<string>",
"description": "<string>",
"allow_new_values": True,
"new_value_handling": "<string>"
}
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({
name: '<string>',
code: '<string>',
description: '<string>',
allow_new_values: true,
new_value_handling: '<string>'
})
};
fetch('https://wisepim.com/api/public/v1/value-code-sets/{resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"code": "<string>",
"description": "<string>",
"allow_new_values": true,
"new_value_handling": "<string>",
"id": 123
}{
"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 value-code-sets
PATCH /value-code-sets/. Required scopes: value-code-sets:write.
PATCH
/
api
/
public
/
v1
/
value-code-sets
/
{resource_id}
Update value-code-sets
curl --request PATCH \
--url https://wisepim.com/api/public/v1/value-code-sets/{resource_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"code": "<string>",
"description": "<string>",
"allow_new_values": true,
"new_value_handling": "<string>"
}
'import requests
url = "https://wisepim.com/api/public/v1/value-code-sets/{resource_id}"
payload = {
"name": "<string>",
"code": "<string>",
"description": "<string>",
"allow_new_values": True,
"new_value_handling": "<string>"
}
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({
name: '<string>',
code: '<string>',
description: '<string>',
allow_new_values: true,
new_value_handling: '<string>'
})
};
fetch('https://wisepim.com/api/public/v1/value-code-sets/{resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"code": "<string>",
"description": "<string>",
"allow_new_values": true,
"new_value_handling": "<string>",
"id": 123
}{
"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

