Create a new task item
POST
/v1/task-management
const url = 'https://api.varman.io/v1/task-management';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"title":"Review vendor contract","description":"example","status":"todo","priority":"urgent","entityId":"example","entityType":"vendor","assigneeId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/task-management \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "title": "Review vendor contract", "description": "example", "status": "todo", "priority": "urgent", "entityId": "example", "entityType": "vendor", "assigneeId": "example" }'Create a new task item in Varman. Manage task items and attachments linked to operational entities such as risks and vendors.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
title
required
Task title
string
Example
Review vendor contractdescription
Task description
string
status
Task status
string
priority
Task priority
string
entityId
required
ID of the entity this task belongs to
string
entityType
required
Type of entity
string
Example
vendorassigneeId
Assignee member ID
string
Responses
Section titled “Responses”Task item created successfully
Media typeapplication/json
object
id
required
Task item ID
string
title
required
Task title
string
description
required
Task description
object
status
required
Task status
string
priority
required
Task priority
string
entityId
required
ID of the entity this task belongs to
string
entityType
required
Type of entity
string
assignee
required
Assignee information
object
id
required
Member ID
string
user
required
User information
object
createdBy
required
Creator information
object
id
required
Member ID
string
user
required
User information
object
updatedBy
required
Last updater information
object
id
required
Member ID
string
user
required
User information
object
createdAt
required
Creation timestamp
string format: date-time
updatedAt
required
Last update timestamp
string format: date-time
Example
{ "id": "tski_abc123def456", "title": "Review vendor contract", "status": "todo", "priority": "urgent", "entityType": "vendor"}