Create a new tag for the company
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/tags \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Project Alpha",
"description": "Documents related to the development and release of Project Alpha"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/tags"
payload = {
"name": "Project Alpha",
"description": "Documents related to the development and release of Project Alpha"
}
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({
name: 'Project Alpha',
description: 'Documents related to the development and release of Project Alpha'
})
};
fetch('https://paradigm.lighton.ai/api/v3/tags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 3,
"created_at": "2024-01-16T11:00:00Z",
"updated_at": "2024-01-16T11:00:00Z",
"name": "Project Alpha",
"description": "Documents related to the development and release of Project Alpha",
"auto_assign": true,
"document_count": 0
}Tags
Create a new tag for the company
Create a new tag for the authenticated user’s company. The auto_assign flag determines if the tag can be automatically assigned by the system (True) or only manually (False). Requires tag creation permission.
POST
/
api
/
v3
/
tags
Create a new tag for the company
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/tags \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Project Alpha",
"description": "Documents related to the development and release of Project Alpha"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/tags"
payload = {
"name": "Project Alpha",
"description": "Documents related to the development and release of Project Alpha"
}
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({
name: 'Project Alpha',
description: 'Documents related to the development and release of Project Alpha'
})
};
fetch('https://paradigm.lighton.ai/api/v3/tags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 3,
"created_at": "2024-01-16T11:00:00Z",
"updated_at": "2024-01-16T11:00:00Z",
"name": "Project Alpha",
"description": "Documents related to the development and release of Project Alpha",
"auto_assign": true,
"document_count": 0
}Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
Tag created successfully
Serializer for listing tags.