Share a store design template with the organization (org admin and artifacts write)
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/organization-design-templates/promote/"
payload = {
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"all_stores": True,
"store_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
template_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
all_stores: true,
store_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/organization-design-templates/promote/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/organization-design-templates/promote/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"all_stores": true,
"store_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"org_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"kind": "new",
"other_linked_stores": 123
}{
"code": "<string>",
"detail": "<string>"
}Organization items
Share a store design template with the organization (org admin and artifacts write)
A template with no source becomes a new organization template and its linked copy. A fork of an organization template is published as that template’s next version, refused when unchanged (not_forked) or based on an older version (stale). Store history is never shared.
POST
/
projects
/
{project_id}
/
organization-design-templates
/
promote
/
Share a store design template with the organization (org admin and artifacts write)
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/organization-design-templates/promote/"
payload = {
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"all_stores": True,
"store_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
template_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
all_stores: true,
store_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/organization-design-templates/promote/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/organization-design-templates/promote/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"all_stores": true,
"store_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"org_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"kind": "new",
"other_linked_stores": 123
}{
"code": "<string>",
"detail": "<string>"
}Authorizations
BearerAuthTokenAuth
Use Authorization: Bearer <token>. The token is either a user token / OAuth access
token, or a service-account API key (cfk_...). A key is valid on every endpoint and
acts as its service account, an organization member with per-store permissions.
Refused keys answer 403 with Invalid API key., API key revoked.,
API key expired. or API key disabled..
Body
application/json