Tasks
List, create, update and trash tasks. With an external key you can create them idempotently.
- GET
/projects/{projectId}/tasksList tasks of a project - POST
/projects/{projectId}/tasksCreate a task - GET
/projects/{projectId}/tasks/{taskId}Get a task - PATCH
/projects/{projectId}/tasks/{taskId}Update a task - DELETE
/projects/{projectId}/tasks/{taskId}Delete a task - POST
/projects/{projectId}/tasks/upsert-by-external-keyCreate or update a task by external key
List tasks of a project
GET/projects/{projectId}/tasks
Scope readPermission tasks:read
Path parameters
-
projectIdstringrequired
Query parameters
-
limitintegerPage size.
-
cursorstringOpaque cursor from the previous response's
nextCursor.
Response 200
Success.
-
tasksarray of TaskShow 20 attributes
-
idstringrequired -
projectIdstring -
titlestring -
descriptionstring -
statusstring -
prioritystring -
startDatestring -
dueDatestring -
isCompletedboolean -
assigneeIdsarray of string -
categorystring -
sprintIdstring -
initiativeIdstring -
dependenciesarray of string -
externalKeystring -
sourcestring -
createdAtstring (date-time) -
updatedAtstring (date-time) -
externalExternalMapExternal references by source. Source keys match
^[a-z][a-z0-9_-]{1,31}$, max 5.Show 1 attribute
-
<key>ExternalExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
-
-
-
recurrenceTaskRecurrenceRepeat rule of a recurring task (stored on every instance of the series). The next instance is created when this one is completed, and with mode
fixedalso at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.Show 7 attributes
-
rulestringRRULE subset. FREQ=DAILY|WEEKLY|MONTHLY|YEARLY (required); INTERVAL=1..999; BYDAY = weekday list (WEEKLY, e.g. MO,TU,WE,TH,FR for weekdays) or one nth weekday (MONTHLY, 1MO..4MO, -1FR = last Friday); BYMONTHDAY=1..31 or -1 (MONTHLY; days past the month end fall on its last day); COUNT=1..1000 or UNTIL=YYYYMMDD (inclusive). Yearly on 29 Feb falls on 28 Feb in common years.
-
modestringfixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.
Allowed values:
fixedafterCompletion -
timeZonestringIANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.
-
seriesIdstring -
indexinteger -
anchorstring -
occurrencestringScheduled day of this instance (YYYY-MM-DD).
-
-
-
nextCursorstring | null -
totalinteger
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 429
rate_limitedordaily_write_limit.
curl "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks?limit=50" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks?limit=50', {
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks?limit=50",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks?limit=50")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"tasks": [
{
"id": "task_1",
"projectId": "project_1",
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"priority": "High",
"startDate": "2026-11-02",
"dueDate": "2026-11-02",
"isCompleted": false,
"assigneeIds": [
"assignee_1"
],
"category": "Design",
"sprintId": "sprint_1",
"initiativeId": "initiative_1",
"dependencies": [
"task_2"
]
}
],
"nextCursor": null,
"total": 1,
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Create a task
POST/projects/{projectId}/tasks
Scope tasks:writePermission tasks:write
Requires title.
Path parameters
-
projectIdstringrequired
Headers
-
X-ProjectFlow-PersonastringAgent persona the write is attributed to ("Mira · agent of <you>"): a persona name or
id:<personaId>of the token owner (auto-created when unknown unless switched off in "My team"). Only user-bound credentials (OAuth, personal token) and only on writes; a workspace API token gets400 persona-requires-user-token. Errorspersona-invalid-name400,persona-not-found404,persona-archived409,persona-limit429. When the workspace policypersonasis off or the persona is blocked, the write succeeds without persona and the response carriesX-ProjectFlow-Persona-Ignored: policy|blocked.
Request body application/json
-
recurrenceTaskRecurrenceInput | nullSend
{ rule, mode?, timeZone? }to make a task repeat or change its rule;nullstops repeating.Show 3 attributes
-
rulestringrequired -
modestringAllowed values:
fixedafterCompletion -
timeZonestring
-
-
titlestring -
descriptionstring -
statusstring -
prioritystring -
startDatestring -
dueDatestring -
isCompletedboolean -
assigneestring -
assigneeIdstring -
assigneeIdsarray of string -
assignedGroupIdsarray of string -
categorystring -
dependenciesarray of string -
sprintIdstring -
initiativeIdstring -
externalKeystringIdempotency handle for
upsert-by-external-key. -
sourcestring -
externalExternalInputWrite form of
external(scopeexternal:write). Each source is replaced as a whole, other sources stay;nullremoves a source.Show 1 attribute
-
<key>External | object | nullExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
Show 1 attribute
-
<key>string | number | boolean | null
-
-
-
Response 201
Created.
-
taskTaskA task. The stored document may carry more fields than listed.
Show 20 attributes
-
idstringrequired -
projectIdstring -
titlestring -
descriptionstring -
statusstring -
prioritystring -
startDatestring -
dueDatestring -
isCompletedboolean -
assigneeIdsarray of string -
categorystring -
sprintIdstring -
initiativeIdstring -
dependenciesarray of string -
externalKeystring -
sourcestring -
createdAtstring (date-time) -
updatedAtstring (date-time) -
externalExternalMapExternal references by source. Source keys match
^[a-z][a-z0-9_-]{1,31}$, max 5.Show 1 attribute
-
<key>ExternalExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
-
-
-
recurrenceTaskRecurrenceRepeat rule of a recurring task (stored on every instance of the series). The next instance is created when this one is completed, and with mode
fixedalso at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.Show 7 attributes
-
rulestringRRULE subset. FREQ=DAILY|WEEKLY|MONTHLY|YEARLY (required); INTERVAL=1..999; BYDAY = weekday list (WEEKLY, e.g. MO,TU,WE,TH,FR for weekdays) or one nth weekday (MONTHLY, 1MO..4MO, -1FR = last Friday); BYMONTHDAY=1..31 or -1 (MONTHLY; days past the month end fall on its last day); COUNT=1..1000 or UNTIL=YYYYMMDD (inclusive). Yearly on 29 Feb falls on 28 Feb in common years.
-
modestringfixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.
Allowed values:
fixedafterCompletion -
timeZonestringIANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.
-
seriesIdstring -
indexinteger -
anchorstring -
occurrencestringScheduled day of this instance (YYYY-MM-DD).
-
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X POST "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"priority": "High",
"startDate": "2026-11-02"
}'const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
title: 'Prepare kickoff',
description: 'Short description',
status: 'In Progress',
priority: 'High',
startDate: '2026-11-02'
}),
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"priority": "High",
"startDate": "2026-11-02"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"priority": "High",
"startDate": "2026-11-02",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"task": {
"id": "task_1",
"projectId": "project_1",
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"priority": "High",
"startDate": "2026-11-02",
"dueDate": "2026-11-02",
"isCompleted": false,
"assigneeIds": [
"assignee_1"
],
"category": "Design",
"sprintId": "sprint_1",
"initiativeId": "initiative_1",
"dependencies": [
"task_2"
]
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Get a task
GET/projects/{projectId}/tasks/{taskId}
Scope readPermission tasks:read
Path parameters
-
projectIdstringrequired -
taskIdstringrequired
Response 200
Success.
-
taskTaskA task. The stored document may carry more fields than listed.
Show 20 attributes
-
idstringrequired -
projectIdstring -
titlestring -
descriptionstring -
statusstring -
prioritystring -
startDatestring -
dueDatestring -
isCompletedboolean -
assigneeIdsarray of string -
categorystring -
sprintIdstring -
initiativeIdstring -
dependenciesarray of string -
externalKeystring -
sourcestring -
createdAtstring (date-time) -
updatedAtstring (date-time) -
externalExternalMapExternal references by source. Source keys match
^[a-z][a-z0-9_-]{1,31}$, max 5.Show 1 attribute
-
<key>ExternalExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
-
-
-
recurrenceTaskRecurrenceRepeat rule of a recurring task (stored on every instance of the series). The next instance is created when this one is completed, and with mode
fixedalso at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.Show 7 attributes
-
rulestringRRULE subset. FREQ=DAILY|WEEKLY|MONTHLY|YEARLY (required); INTERVAL=1..999; BYDAY = weekday list (WEEKLY, e.g. MO,TU,WE,TH,FR for weekdays) or one nth weekday (MONTHLY, 1MO..4MO, -1FR = last Friday); BYMONTHDAY=1..31 or -1 (MONTHLY; days past the month end fall on its last day); COUNT=1..1000 or UNTIL=YYYYMMDD (inclusive). Yearly on 29 Feb falls on 28 Feb in common years.
-
modestringfixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.
Allowed values:
fixedafterCompletion -
timeZonestringIANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.
-
seriesIdstring -
indexinteger -
anchorstring -
occurrencestringScheduled day of this instance (YYYY-MM-DD).
-
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 429
rate_limitedordaily_write_limit.
curl "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID', {
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"task": {
"id": "task_1",
"projectId": "project_1",
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"priority": "High",
"startDate": "2026-11-02",
"dueDate": "2026-11-02",
"isCompleted": false,
"assigneeIds": [
"assignee_1"
],
"category": "Design",
"sprintId": "sprint_1",
"initiativeId": "initiative_1",
"dependencies": [
"task_2"
]
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Update a task
PATCH/projects/{projectId}/tasks/{taskId}
Scope tasks:writePermission tasks:write
Path parameters
-
projectIdstringrequired -
taskIdstringrequired
Headers
-
X-ProjectFlow-PersonastringAgent persona the write is attributed to ("Mira · agent of <you>"): a persona name or
id:<personaId>of the token owner (auto-created when unknown unless switched off in "My team"). Only user-bound credentials (OAuth, personal token) and only on writes; a workspace API token gets400 persona-requires-user-token. Errorspersona-invalid-name400,persona-not-found404,persona-archived409,persona-limit429. When the workspace policypersonasis off or the persona is blocked, the write succeeds without persona and the response carriesX-ProjectFlow-Persona-Ignored: policy|blocked.
Request body application/json
-
recurrenceTaskRecurrenceInput | nullSend
{ rule, mode?, timeZone? }to make a task repeat or change its rule;nullstops repeating.Show 3 attributes
-
rulestringrequired -
modestringAllowed values:
fixedafterCompletion -
timeZonestring
-
-
titlestring -
descriptionstring -
statusstring -
prioritystring -
startDatestring -
dueDatestring -
isCompletedboolean -
assigneestring -
assigneeIdstring -
assigneeIdsarray of string -
assignedGroupIdsarray of string -
categorystring -
dependenciesarray of string -
sprintIdstring -
initiativeIdstring -
externalKeystringIdempotency handle for
upsert-by-external-key. -
sourcestring -
externalExternalInputWrite form of
external(scopeexternal:write). Each source is replaced as a whole, other sources stay;nullremoves a source.Show 1 attribute
-
<key>External | object | nullExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
Show 1 attribute
-
<key>string | number | boolean | null
-
-
-
Response 200
Success.
-
taskTaskA task. The stored document may carry more fields than listed.
Show 20 attributes
-
idstringrequired -
projectIdstring -
titlestring -
descriptionstring -
statusstring -
prioritystring -
startDatestring -
dueDatestring -
isCompletedboolean -
assigneeIdsarray of string -
categorystring -
sprintIdstring -
initiativeIdstring -
dependenciesarray of string -
externalKeystring -
sourcestring -
createdAtstring (date-time) -
updatedAtstring (date-time) -
externalExternalMapExternal references by source. Source keys match
^[a-z][a-z0-9_-]{1,31}$, max 5.Show 1 attribute
-
<key>ExternalExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
-
-
-
recurrenceTaskRecurrenceRepeat rule of a recurring task (stored on every instance of the series). The next instance is created when this one is completed, and with mode
fixedalso at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.Show 7 attributes
-
rulestringRRULE subset. FREQ=DAILY|WEEKLY|MONTHLY|YEARLY (required); INTERVAL=1..999; BYDAY = weekday list (WEEKLY, e.g. MO,TU,WE,TH,FR for weekdays) or one nth weekday (MONTHLY, 1MO..4MO, -1FR = last Friday); BYMONTHDAY=1..31 or -1 (MONTHLY; days past the month end fall on its last day); COUNT=1..1000 or UNTIL=YYYYMMDD (inclusive). Yearly on 29 Feb falls on 28 Feb in common years.
-
modestringfixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.
Allowed values:
fixedafterCompletion -
timeZonestringIANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.
-
seriesIdstring -
indexinteger -
anchorstring -
occurrencestringScheduled day of this instance (YYYY-MM-DD).
-
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X PATCH "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"priority": "High",
"startDate": "2026-11-02"
}'const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
title: 'Prepare kickoff',
description: 'Short description',
status: 'In Progress',
priority: 'High',
startDate: '2026-11-02'
}),
});
const data = await res.json();import os
import requests
res = requests.patch(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"priority": "High",
"startDate": "2026-11-02"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID")!)
request.httpMethod = "PATCH"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"priority": "High",
"startDate": "2026-11-02",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"task": {
"id": "task_1",
"projectId": "project_1",
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"priority": "High",
"startDate": "2026-11-02",
"dueDate": "2026-11-02",
"isCompleted": false,
"assigneeIds": [
"assignee_1"
],
"category": "Design",
"sprintId": "sprint_1",
"initiativeId": "initiative_1",
"dependencies": [
"task_2"
]
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Delete a task
DELETE/projects/{projectId}/tasks/{taskId}
Scope tasks:writePermission tasks:delete
Path parameters
-
projectIdstringrequired -
taskIdstringrequired
Response 200
Success.
-
deletedTaskIdstring
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X DELETE "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.delete(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/TASK_ID")!)
request.httpMethod = "DELETE"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"deletedTaskId": "deletedtask_1",
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Create or update a task by external key
POST/projects/{projectId}/tasks/upsert-by-external-key
Scope tasks:writePermission tasks:write
Finds the task with externalKey in the project and updates it (200, operation: updated) or creates it (201, operation: created). Idempotent. appendSummary appends text to the description.
Path parameters
-
projectIdstringrequired
Headers
-
X-ProjectFlow-PersonastringAgent persona the write is attributed to ("Mira · agent of <you>"): a persona name or
id:<personaId>of the token owner (auto-created when unknown unless switched off in "My team"). Only user-bound credentials (OAuth, personal token) and only on writes; a workspace API token gets400 persona-requires-user-token. Errorspersona-invalid-name400,persona-not-found404,persona-archived409,persona-limit429. When the workspace policypersonasis off or the persona is blocked, the write succeeds without persona and the response carriesX-ProjectFlow-Persona-Ignored: policy|blocked.
Request body application/json
-
appendSummarystringText appended to the description on update.
-
recurrenceTaskRecurrenceInput | nullSend
{ rule, mode?, timeZone? }to make a task repeat or change its rule;nullstops repeating.Show 3 attributes
-
rulestringrequired -
modestringAllowed values:
fixedafterCompletion -
timeZonestring
-
-
titlestring -
descriptionstring -
statusstring -
prioritystring -
startDatestring -
dueDatestring -
isCompletedboolean -
assigneestring -
assigneeIdstring -
assigneeIdsarray of string -
assignedGroupIdsarray of string -
categorystring -
dependenciesarray of string -
sprintIdstring -
initiativeIdstring -
externalKeystringrequiredIdempotency handle for
upsert-by-external-key. -
sourcestring -
externalExternalInputWrite form of
external(scopeexternal:write). Each source is replaced as a whole, other sources stay;nullremoves a source.Show 1 attribute
-
<key>External | object | nullExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
Show 1 attribute
-
<key>string | number | boolean | null
-
-
-
Response 200
Updated.
-
operationstringAllowed values:
updated -
taskTaskA task. The stored document may carry more fields than listed.
Show 20 attributes
-
idstringrequired -
projectIdstring -
titlestring -
descriptionstring -
statusstring -
prioritystring -
startDatestring -
dueDatestring -
isCompletedboolean -
assigneeIdsarray of string -
categorystring -
sprintIdstring -
initiativeIdstring -
dependenciesarray of string -
externalKeystring -
sourcestring -
createdAtstring (date-time) -
updatedAtstring (date-time) -
externalExternalMapExternal references by source. Source keys match
^[a-z][a-z0-9_-]{1,31}$, max 5.Show 1 attribute
-
<key>ExternalExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
-
-
-
recurrenceTaskRecurrenceRepeat rule of a recurring task (stored on every instance of the series). The next instance is created when this one is completed, and with mode
fixedalso at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.Show 7 attributes
-
rulestringRRULE subset. FREQ=DAILY|WEEKLY|MONTHLY|YEARLY (required); INTERVAL=1..999; BYDAY = weekday list (WEEKLY, e.g. MO,TU,WE,TH,FR for weekdays) or one nth weekday (MONTHLY, 1MO..4MO, -1FR = last Friday); BYMONTHDAY=1..31 or -1 (MONTHLY; days past the month end fall on its last day); COUNT=1..1000 or UNTIL=YYYYMMDD (inclusive). Yearly on 29 Feb falls on 28 Feb in common years.
-
modestringfixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.
Allowed values:
fixedafterCompletion -
timeZonestringIANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.
-
seriesIdstring -
indexinteger -
anchorstring -
occurrencestringScheduled day of this instance (YYYY-MM-DD).
-
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 409
conflict, e.g. webhook limit reached. - 429
rate_limitedordaily_write_limit.
curl -X POST "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/upsert-by-external-key" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"externalKey": "ticket-4711",
"appendSummary": "appendSummary",
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress"
}'const res = await fetch('https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/upsert-by-external-key', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
externalKey: 'ticket-4711',
appendSummary: 'appendSummary',
title: 'Prepare kickoff',
description: 'Short description',
status: 'In Progress'
}),
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/upsert-by-external-key",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"externalKey": "ticket-4711",
"appendSummary": "appendSummary",
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/projects/PROJECT_ID/tasks/upsert-by-external-key")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"externalKey": "ticket-4711",
"appendSummary": "appendSummary",
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": true,
"operation": "updated",
"task": {
"id": "task_1",
"projectId": "project_1",
"title": "Prepare kickoff",
"description": "Short description",
"status": "In Progress",
"priority": "High",
"startDate": "2026-11-02",
"dueDate": "2026-11-02",
"isCompleted": false,
"assigneeIds": [
"assignee_1"
],
"category": "Design",
"sprintId": "sprint_1",
"initiativeId": "initiative_1",
"dependencies": [
"task_2"
]
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}