Set task priority and due date
PATCH
/v1/tasks/{taskId}/planning
const url = 'https://api.varman.io/v1/tasks/tsk_abc123def456/planning';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"priority":"urgent","dueDate":"2027-03-31T00:00:00.000Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.varman.io/v1/tasks/tsk_abc123def456/planning \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "priority": "urgent", "dueDate": "2027-03-31T00:00:00.000Z" }'Sets the planning priority and due date of a compliance task. Send null to clear either field. Used by inline editing in task and project tables.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”taskId
required
string
Example
tsk_abc123def456Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
priority
Task priority, or null to clear
string
Example
highdueDate
Due date (ISO 8601), or null to clear
string format: date-time
Example
2027-03-31T00:00:00.000Z