Create a new task item
curl --request POST \
--url https://api.trycomp.ai/v1/task-management \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "Review vendor contract",
"entityId": "<string>",
"entityType": "vendor"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'Review vendor contract', entityId: '<string>', entityType: 'vendor'})
};
fetch('https://api.trycomp.ai/v1/task-management', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/task-management"
payload = {
"title": "Review vendor contract",
"entityId": "<string>",
"entityType": "vendor"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "tski_abc123def456",
"title": "Review vendor contract",
"description": {},
"status": "todo",
"priority": "urgent",
"entityId": "<string>",
"entityType": "vendor",
"assignee": {
"id": "<string>",
"user": {}
},
"createdBy": {
"id": "<string>",
"user": {}
},
"updatedBy": {
"id": "<string>",
"user": {}
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Task Management
Create a new task item | Comp AI API
Create a new task item in Comp AI. Manage task items and attachments linked to operational entities such as risks and vendors.
POST
/
v1
/
task-management
Create a new task item
curl --request POST \
--url https://api.trycomp.ai/v1/task-management \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "Review vendor contract",
"entityId": "<string>",
"entityType": "vendor"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'Review vendor contract', entityId: '<string>', entityType: 'vendor'})
};
fetch('https://api.trycomp.ai/v1/task-management', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/task-management"
payload = {
"title": "Review vendor contract",
"entityId": "<string>",
"entityType": "vendor"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "tski_abc123def456",
"title": "Review vendor contract",
"description": {},
"status": "todo",
"priority": "urgent",
"entityId": "<string>",
"entityType": "vendor",
"assignee": {
"id": "<string>",
"user": {}
},
"createdBy": {
"id": "<string>",
"user": {}
},
"updatedBy": {
"id": "<string>",
"user": {}
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Authorizations
API key for authentication
Body
application/json
Task title
Example:
"Review vendor contract"
ID of the entity this task belongs to
Type of entity
Available options:
vendor, risk Example:
"vendor"
Task description
Task status
Available options:
todo, in_progress, in_review, done, canceled Task priority
Available options:
urgent, high, medium, low Assignee member ID
Response
201 - application/json
Task item created successfully
Task item ID
Example:
"tski_abc123def456"
Task title
Example:
"Review vendor contract"
Task description
Task status
Available options:
todo, in_progress, in_review, done, canceled Task priority
Available options:
urgent, high, medium, low ID of the entity this task belongs to
Type of entity
Available options:
vendor, risk Assignee information
Show child attributes
Show child attributes
Creator information
Show child attributes
Show child attributes
Last updater information
Show child attributes
Show child attributes
Creation timestamp
Last update timestamp
Was this page helpful?

