Replace Allowed Domains
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/widget/allowed-domains \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"domains": [
"<string>"
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/widget/allowed-domains"
payload = { "domains": ["<string>"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({domains: ['<string>']})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/widget/allowed-domains', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"domains": [
"<string>"
]
}Widget
Replace Allowed Domains
Replace the whole list of allowed domains.
PUT
/
api
/
v1
/
widget
/
allowed-domains
Replace Allowed Domains
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/widget/allowed-domains \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"domains": [
"<string>"
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/widget/allowed-domains"
payload = { "domains": ["<string>"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({domains: ['<string>']})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/widget/allowed-domains', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"domains": [
"<string>"
]
}