Set the org's allowed provisioning domains (superuser only)
import requests
url = "https://eu.app.clarifeye.ai/api/v1/organizations/{id}/provisioning-config/"
payload = { "allowed_provisioning_domains": ["loreal.com"] }
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({allowed_provisioning_domains: ['loreal.com']})
};
fetch('https://eu.app.clarifeye.ai/api/v1/organizations/{id}/provisioning-config/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://eu.app.clarifeye.ai/api/v1/organizations/{id}/provisioning-config/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"allowed_provisioning_domains": [
"loreal.com"
]
}
'{
"allowed_provisioning_domains": [
"loreal.com"
]
}User Provisioning
Set the org's allowed provisioning domains (superuser only)
PATCH
/
organizations
/
{id}
/
provisioning-config
/
Set the org's allowed provisioning domains (superuser only)
import requests
url = "https://eu.app.clarifeye.ai/api/v1/organizations/{id}/provisioning-config/"
payload = { "allowed_provisioning_domains": ["loreal.com"] }
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({allowed_provisioning_domains: ['loreal.com']})
};
fetch('https://eu.app.clarifeye.ai/api/v1/organizations/{id}/provisioning-config/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://eu.app.clarifeye.ai/api/v1/organizations/{id}/provisioning-config/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"allowed_provisioning_domains": [
"loreal.com"
]
}
'{
"allowed_provisioning_domains": [
"loreal.com"
]
}Authorizations
BearerAuthTokenAuth
Use Authorization: Bearer
Path Parameters
UUID of the organization
Body
application/json
Email domains that provisioning may pre-create accounts for.
Response
Updated configuration.
Email domains that provisioning may pre-create accounts for.