Update settings
curl --request PATCH \
--url https://{your-subdomain}.neetoengage.com/api/external/v1/setting \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"setting": {
"product_name": "Spinkart",
"website_url": "https://www.spinkart.com"
}
}
'const options = {
method: 'PATCH',
headers: {
'X-Api-Key': '<x-api-key>',
Accept: '<accept>',
'Content-Type': 'application/json'
},
body: JSON.stringify({setting: {product_name: 'Spinkart', website_url: 'https://www.spinkart.com'}})
};
fetch('https://{your-subdomain}.neetoengage.com/api/external/v1/setting', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoengage.com/api/external/v1/setting"
payload = { "setting": {
"product_name": "Spinkart",
"website_url": "https://www.spinkart.com"
} }
headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"setting": {
"product_name": "Spinkart",
"website_url": "https://www.spinkart.com"
}
}{
"error": "Could not authenticate, invalid API Key"
}{
"error": "Website url is invalid"
}Settings
Update settings
Updates the product name, the website URL, or both. Fields you leave out are not changed. Other settings are ignored. PUT works the same as PATCH.
PATCH
/
setting
Update settings
curl --request PATCH \
--url https://{your-subdomain}.neetoengage.com/api/external/v1/setting \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"setting": {
"product_name": "Spinkart",
"website_url": "https://www.spinkart.com"
}
}
'const options = {
method: 'PATCH',
headers: {
'X-Api-Key': '<x-api-key>',
Accept: '<accept>',
'Content-Type': 'application/json'
},
body: JSON.stringify({setting: {product_name: 'Spinkart', website_url: 'https://www.spinkart.com'}})
};
fetch('https://{your-subdomain}.neetoengage.com/api/external/v1/setting', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoengage.com/api/external/v1/setting"
payload = { "setting": {
"product_name": "Spinkart",
"website_url": "https://www.spinkart.com"
} }
headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"setting": {
"product_name": "Spinkart",
"website_url": "https://www.spinkart.com"
}
}{
"error": "Could not authenticate, invalid API Key"
}{
"error": "Website url is invalid"
}Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
API key. Refer to Authentication for more information.
Must be application/json.
Available options:
application/json Body
application/json