Create a task
curl --request POST \
--url https://www.presolve.com/api/v1/tasks \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "<string>",
"dueAt": "<string>",
"caseId": "<string>",
"description": "<string>",
"assigneeIds": [],
"followerIds": [],
"priority": "<string>",
"taskType": "<string>"
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: '<string>',
dueAt: '<string>',
caseId: '<string>',
description: '<string>',
assigneeIds: [],
followerIds: [],
priority: '<string>',
taskType: '<string>'
})
};
fetch('https://www.presolve.com/api/v1/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.presolve.com/api/v1/tasks"
payload = {
"title": "<string>",
"dueAt": "<string>",
"caseId": "<string>",
"description": "<string>",
"assigneeIds": [],
"followerIds": [],
"priority": "<string>",
"taskType": "<string>"
}
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"task": {
"id": "<string>",
"organizationId": "<string>",
"caseId": "<string>",
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"taskType": "<string>",
"dueAt": "<string>",
"startAt": "<string>",
"isAllDay": true,
"ownerAttorneyId": "<string>",
"inProgressAt": "<string>",
"completedAt": "<string>",
"completedBy": "<string>",
"cancelledAt": "<string>",
"cancelledBy": "<string>",
"assignees": [
{
"attorneyId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>"
}
],
"followers": [
{
"attorneyId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>"
}
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}Tasks
Create a task
Requires the tasks:write scope. Mutations require an X-Idempotency-Key header (responses are stored for replay; reusing a key with a different request returns 409 IDEMPOTENCY_CONFLICT). Rate tier: write.
POST
/
api
/
v1
/
tasks
Create a task
curl --request POST \
--url https://www.presolve.com/api/v1/tasks \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "<string>",
"dueAt": "<string>",
"caseId": "<string>",
"description": "<string>",
"assigneeIds": [],
"followerIds": [],
"priority": "<string>",
"taskType": "<string>"
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: '<string>',
dueAt: '<string>',
caseId: '<string>',
description: '<string>',
assigneeIds: [],
followerIds: [],
priority: '<string>',
taskType: '<string>'
})
};
fetch('https://www.presolve.com/api/v1/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.presolve.com/api/v1/tasks"
payload = {
"title": "<string>",
"dueAt": "<string>",
"caseId": "<string>",
"description": "<string>",
"assigneeIds": [],
"followerIds": [],
"priority": "<string>",
"taskType": "<string>"
}
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"task": {
"id": "<string>",
"organizationId": "<string>",
"caseId": "<string>",
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"taskType": "<string>",
"dueAt": "<string>",
"startAt": "<string>",
"isAllDay": true,
"ownerAttorneyId": "<string>",
"inProgressAt": "<string>",
"completedAt": "<string>",
"completedBy": "<string>",
"cancelledAt": "<string>",
"cancelledBy": "<string>",
"assignees": [
{
"attorneyId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>"
}
],
"followers": [
{
"attorneyId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>"
}
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}Authorizations
Org-issued integration API key (service account credential). The plaintext secret is shown once at creation.
Headers
Stable caller-chosen key (max 200 chars) making the mutation safely retryable.
Maximum string length:
200Body
application/json
Required string length:
1 - 500Required string length:
1 - 200Maximum string length:
10000Maximum array length:
50Required string length:
1 - 200Maximum array length:
50Required string length:
1 - 200Required string length:
1 - 50Required string length:
1 - 100