Import company model configuration
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/company/model-config/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://paradigm.lighton.ai/api/v3/company/model-config/import"
payload = {}
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({})
};
fetch('https://paradigm.lighton.ai/api/v3/company/model-config/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"assigned": [
"<string>"
],
"skipped": [
"<string>"
],
"errors": [
"<string>"
]
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Models
Import company model configuration
Assign models to the authenticated user’s company from a JSON config. Idempotent: existing assignments are skipped. Unknown model UUIDs are reported as errors.
POST
/
api
/
v3
/
company
/
model-config
/
import
Import company model configuration
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/company/model-config/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://paradigm.lighton.ai/api/v3/company/model-config/import"
payload = {}
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({})
};
fetch('https://paradigm.lighton.ai/api/v3/company/model-config/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"assigned": [
"<string>"
],
"skipped": [
"<string>"
],
"errors": [
"<string>"
]
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data