Create Classes
curl --request POST \
--url https://api.landing.ai/v1/projects/{project_id}/classes \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.landing.ai/v1/projects/{project_id}/classes"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.landing.ai/v1/projects/{project_id}/classes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": 123,
"name": "<string>",
"index": 123,
"color": "<string>",
"description": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Classes
Create Classes
POST
/
v1
/
projects
/
{project_id}
/
classes
Create Classes
curl --request POST \
--url https://api.landing.ai/v1/projects/{project_id}/classes \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.landing.ai/v1/projects/{project_id}/classes"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.landing.ai/v1/projects/{project_id}/classes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": 123,
"name": "<string>",
"index": 123,
"color": "<string>",
"description": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}⌘I

