ProjectFlow Pre-Launch

Aufgaben

Aufgaben auflisten, anlegen, ändern und in den Papierkorb legen. Mit einem externen Schlüssel legst du sie idempotent an.

Die Referenz wird aus der englischen OpenAPI-Spezifikation erzeugt und ist deshalb auf Englisch.

List tasks of a project

GET/projects/{projectId}/tasks

Scope readBerechtigung tasks:read

Pfadparameter

  • projectIdstringPflicht

Query-Parameter

  • limitinteger1 to 200 · Standard: 100

    Page size.

  • cursorstring

    Opaque cursor from the previous response's nextCursor.

Antwort 200

Success.

  • tasksarray of Task
    20 Attribute anzeigen
    • idstringPflicht
    • 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)
    • externalExternalMap

      External references by source. Source keys match ^[a-z][a-z0-9_-]{1,31}$, max 5.

      1 Attribut anzeigen
      • <key>External

        External reference to an object in another system.

        5 Attribute anzeigen
        • customerIdstring
        • refstringmax 200 characters
        • labelstringmax 120 characters
        • urlstring (uri)max 2048 characters

          http or https.

        • metaobject

          Flat object, max 20 keys; values string (max 500), number, boolean or null.

    • recurrenceTaskRecurrence

      Repeat 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 fixed also at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.

      7 Attribute anzeigen
      • rulestring

        RRULE 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.

      • modestring

        fixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.

        Erlaubte Werte: fixed afterCompletion

      • timeZonestring

        IANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.

      • seriesIdstring
      • indexinteger
      • anchorstring
      • occurrencestring

        Scheduled day of this instance (YYYY-MM-DD).

  • nextCursorstring | null
  • totalinteger

Fehler

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 429rate_limited or daily_write_limit.

Alle Fehlercodes

Anfrage
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)
Antwort · 200 · gekürztJSON
{
  "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:writeBerechtigung tasks:write

Requires title.

Pfadparameter

  • projectIdstringPflicht

Header

  • X-ProjectFlow-Personastringmax 80 characters

    Agent 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 gets 400 persona-requires-user-token. Errors persona-invalid-name 400, persona-not-found 404, persona-archived 409, persona-limit 429. When the workspace policy personas is off or the persona is blocked, the write succeeds without persona and the response carries X-ProjectFlow-Persona-Ignored: policy|blocked.

Request-Body application/json

  • recurrenceTaskRecurrenceInput | null

    Send { rule, mode?, timeZone? } to make a task repeat or change its rule; null stops repeating.

    3 Attribute anzeigen
    • rulestringPflicht
    • modestringStandard: "fixed"

      Erlaubte Werte: fixed afterCompletion

    • timeZonestring
  • titlestring
  • descriptionstring
  • statusstring
  • prioritystring
  • startDatestring
  • dueDatestring
  • isCompletedboolean
  • assigneestring
  • assigneeIdstring
  • assigneeIdsarray of string
  • assignedGroupIdsarray of string
  • categorystring
  • dependenciesarray of string
  • sprintIdstring
  • initiativeIdstring
  • externalKeystring

    Idempotency handle for upsert-by-external-key.

  • sourcestring
  • externalExternalInput

    Write form of external (scope external:write). Each source is replaced as a whole, other sources stay; null removes a source.

    1 Attribut anzeigen
    • <key>External | object | null

      External reference to an object in another system.

      5 Attribute anzeigen
      • customerIdstring
      • refstringmax 200 characters
      • labelstringmax 120 characters
      • urlstring (uri)max 2048 characters

        http or https.

      • metaobject

        Flat object, max 20 keys; values string (max 500), number, boolean or null.

        1 Attribut anzeigen
        • <key>string | number | boolean | null

Antwort 201

Created.

  • taskTask

    A task. The stored document may carry more fields than listed.

    20 Attribute anzeigen
    • idstringPflicht
    • 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)
    • externalExternalMap

      External references by source. Source keys match ^[a-z][a-z0-9_-]{1,31}$, max 5.

      1 Attribut anzeigen
      • <key>External

        External reference to an object in another system.

        5 Attribute anzeigen
        • customerIdstring
        • refstringmax 200 characters
        • labelstringmax 120 characters
        • urlstring (uri)max 2048 characters

          http or https.

        • metaobject

          Flat object, max 20 keys; values string (max 500), number, boolean or null.

    • recurrenceTaskRecurrence

      Repeat 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 fixed also at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.

      7 Attribute anzeigen
      • rulestring

        RRULE 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.

      • modestring

        fixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.

        Erlaubte Werte: fixed afterCompletion

      • timeZonestring

        IANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.

      • seriesIdstring
      • indexinteger
      • anchorstring
      • occurrencestring

        Scheduled day of this instance (YYYY-MM-DD).

Fehler

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

Alle Fehlercodes

Anfrage
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)
Antwort · 201 · gekürztJSON
{
  "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 readBerechtigung tasks:read

Pfadparameter

  • projectIdstringPflicht
  • taskIdstringPflicht

Antwort 200

Success.

  • taskTask

    A task. The stored document may carry more fields than listed.

    20 Attribute anzeigen
    • idstringPflicht
    • 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)
    • externalExternalMap

      External references by source. Source keys match ^[a-z][a-z0-9_-]{1,31}$, max 5.

      1 Attribut anzeigen
      • <key>External

        External reference to an object in another system.

        5 Attribute anzeigen
        • customerIdstring
        • refstringmax 200 characters
        • labelstringmax 120 characters
        • urlstring (uri)max 2048 characters

          http or https.

        • metaobject

          Flat object, max 20 keys; values string (max 500), number, boolean or null.

    • recurrenceTaskRecurrence

      Repeat 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 fixed also at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.

      7 Attribute anzeigen
      • rulestring

        RRULE 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.

      • modestring

        fixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.

        Erlaubte Werte: fixed afterCompletion

      • timeZonestring

        IANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.

      • seriesIdstring
      • indexinteger
      • anchorstring
      • occurrencestring

        Scheduled day of this instance (YYYY-MM-DD).

Fehler

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 429rate_limited or daily_write_limit.

Alle Fehlercodes

Anfrage
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)
Antwort · 200 · gekürztJSON
{
  "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:writeBerechtigung tasks:write

Pfadparameter

  • projectIdstringPflicht
  • taskIdstringPflicht

Header

  • X-ProjectFlow-Personastringmax 80 characters

    Agent 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 gets 400 persona-requires-user-token. Errors persona-invalid-name 400, persona-not-found 404, persona-archived 409, persona-limit 429. When the workspace policy personas is off or the persona is blocked, the write succeeds without persona and the response carries X-ProjectFlow-Persona-Ignored: policy|blocked.

Request-Body application/json

  • recurrenceTaskRecurrenceInput | null

    Send { rule, mode?, timeZone? } to make a task repeat or change its rule; null stops repeating.

    3 Attribute anzeigen
    • rulestringPflicht
    • modestringStandard: "fixed"

      Erlaubte Werte: fixed afterCompletion

    • timeZonestring
  • titlestring
  • descriptionstring
  • statusstring
  • prioritystring
  • startDatestring
  • dueDatestring
  • isCompletedboolean
  • assigneestring
  • assigneeIdstring
  • assigneeIdsarray of string
  • assignedGroupIdsarray of string
  • categorystring
  • dependenciesarray of string
  • sprintIdstring
  • initiativeIdstring
  • externalKeystring

    Idempotency handle for upsert-by-external-key.

  • sourcestring
  • externalExternalInput

    Write form of external (scope external:write). Each source is replaced as a whole, other sources stay; null removes a source.

    1 Attribut anzeigen
    • <key>External | object | null

      External reference to an object in another system.

      5 Attribute anzeigen
      • customerIdstring
      • refstringmax 200 characters
      • labelstringmax 120 characters
      • urlstring (uri)max 2048 characters

        http or https.

      • metaobject

        Flat object, max 20 keys; values string (max 500), number, boolean or null.

        1 Attribut anzeigen
        • <key>string | number | boolean | null

Antwort 200

Success.

  • taskTask

    A task. The stored document may carry more fields than listed.

    20 Attribute anzeigen
    • idstringPflicht
    • 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)
    • externalExternalMap

      External references by source. Source keys match ^[a-z][a-z0-9_-]{1,31}$, max 5.

      1 Attribut anzeigen
      • <key>External

        External reference to an object in another system.

        5 Attribute anzeigen
        • customerIdstring
        • refstringmax 200 characters
        • labelstringmax 120 characters
        • urlstring (uri)max 2048 characters

          http or https.

        • metaobject

          Flat object, max 20 keys; values string (max 500), number, boolean or null.

    • recurrenceTaskRecurrence

      Repeat 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 fixed also at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.

      7 Attribute anzeigen
      • rulestring

        RRULE 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.

      • modestring

        fixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.

        Erlaubte Werte: fixed afterCompletion

      • timeZonestring

        IANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.

      • seriesIdstring
      • indexinteger
      • anchorstring
      • occurrencestring

        Scheduled day of this instance (YYYY-MM-DD).

Fehler

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

Alle Fehlercodes

Anfrage
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)
Antwort · 200 · gekürztJSON
{
  "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:writeBerechtigung tasks:delete

Pfadparameter

  • projectIdstringPflicht
  • taskIdstringPflicht

Antwort 200

Success.

  • deletedTaskIdstring

Fehler

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

Alle Fehlercodes

Anfrage
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)
Antwort · 200JSON
{
  "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:writeBerechtigung 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.

Pfadparameter

  • projectIdstringPflicht

Header

  • X-ProjectFlow-Personastringmax 80 characters

    Agent 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 gets 400 persona-requires-user-token. Errors persona-invalid-name 400, persona-not-found 404, persona-archived 409, persona-limit 429. When the workspace policy personas is off or the persona is blocked, the write succeeds without persona and the response carries X-ProjectFlow-Persona-Ignored: policy|blocked.

Request-Body application/json

  • appendSummarystring

    Text appended to the description on update.

  • recurrenceTaskRecurrenceInput | null

    Send { rule, mode?, timeZone? } to make a task repeat or change its rule; null stops repeating.

    3 Attribute anzeigen
    • rulestringPflicht
    • modestringStandard: "fixed"

      Erlaubte Werte: fixed afterCompletion

    • timeZonestring
  • titlestring
  • descriptionstring
  • statusstring
  • prioritystring
  • startDatestring
  • dueDatestring
  • isCompletedboolean
  • assigneestring
  • assigneeIdstring
  • assigneeIdsarray of string
  • assignedGroupIdsarray of string
  • categorystring
  • dependenciesarray of string
  • sprintIdstring
  • initiativeIdstring
  • externalKeystringPflicht

    Idempotency handle for upsert-by-external-key.

  • sourcestring
  • externalExternalInput

    Write form of external (scope external:write). Each source is replaced as a whole, other sources stay; null removes a source.

    1 Attribut anzeigen
    • <key>External | object | null

      External reference to an object in another system.

      5 Attribute anzeigen
      • customerIdstring
      • refstringmax 200 characters
      • labelstringmax 120 characters
      • urlstring (uri)max 2048 characters

        http or https.

      • metaobject

        Flat object, max 20 keys; values string (max 500), number, boolean or null.

        1 Attribut anzeigen
        • <key>string | number | boolean | null

Antwort 200

Updated.

  • operationstring

    Erlaubte Werte: updated

  • taskTask

    A task. The stored document may carry more fields than listed.

    20 Attribute anzeigen
    • idstringPflicht
    • 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)
    • externalExternalMap

      External references by source. Source keys match ^[a-z][a-z0-9_-]{1,31}$, max 5.

      1 Attribut anzeigen
      • <key>External

        External reference to an object in another system.

        5 Attribute anzeigen
        • customerIdstring
        • refstringmax 200 characters
        • labelstringmax 120 characters
        • urlstring (uri)max 2048 characters

          http or https.

        • metaobject

          Flat object, max 20 keys; values string (max 500), number, boolean or null.

    • recurrenceTaskRecurrence

      Repeat 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 fixed also at local midnight of this instance's day. Instance ids are deterministic (<seriesId>__r<index>), so there is exactly one task per occurrence.

      7 Attribute anzeigen
      • rulestring

        RRULE 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.

      • modestring

        fixed follows the calendar; afterCompletion counts INTERVAL from the local completion day.

        Erlaubte Werte: fixed afterCompletion

      • timeZonestring

        IANA zone of the series (decides "today" and the completion day). Read-only after creation unless sent.

      • seriesIdstring
      • indexinteger
      • anchorstring
      • occurrencestring

        Scheduled day of this instance (YYYY-MM-DD).

Fehler

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 409conflict, e.g. webhook limit reached.
  • 429rate_limited or daily_write_limit.

Alle Fehlercodes

Anfrage
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)
Antwort · 200 · gekürztJSON
{
  "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"
}

↑↓ wählen, Enter öffnen, Esc schließen