Attività
Le attività appartengono a un progetto. Un token vede le attività di ogni progetto del proprio workspace. La lettura richiede tasks:read; creazione e aggiornamento richiedono tasks:write.
Webhook e notifiche
Le creazioni e gli aggiornamenti fatti tramite l'External API non attivano webhook in uscita né notifiche in-app. Se devi reagire alle tue scritture, usa la risposta dell'API.
/api/v1/external/tasks Scope: tasks:read
Elenca le attività di ogni progetto del workspace del token.
Parametri di query
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
project_id | integer | No | Solo le attività di questo progetto. |
status_id | integer | No | Solo le attività con questo stato. |
type_id | integer | No | Solo le attività di questo tipo. |
search | string | No | Un numero corrisponde esattamente all'id dell'attività; qualsiasi altro testo corrisponde al titolo. |
page | integer | No | Numero di pagina. Predefinito 1. |
per_page | integer | No | Elementi per pagina. Predefinito 20. I valori vengono limitati all'intervallo 1..100. |
Richiesta
curl "https://app.taskforce.place/api/v1/external/tasks?project_id=42&status_id=3" \
-H "Authorization: Bearer $TASKFORCE_TOKEN" \
-H "Accept: application/json" Risposta
{
"success": true,
"message": "",
"data": {
"tasks": [
{
"id": 1287,
"projectId": 42,
"project": {
"id": 42,
"name": "Website relaunch",
"tenantId": 7
},
"title": "Write the API reference",
"description": "Cover projects, tasks and webhooks.",
"priority": 2,
"effort": 14400,
"spentTime": 0,
"typeId": 1,
"parentId": null,
"statusId": 3,
"status": {
"id": 3,
"name": "New"
},
"assigneeIds": [
15
],
"assignees": [
{
"id": 15,
"name": "Ana Costa",
"email": "[email protected]",
"avatar": null
}
],
"startedAt": "2026-09-25T00:00:00+00:00",
"endAt": "2026-10-03T00:00:00+00:00",
"createdAt": "2026-09-25T10:15:00+00:00",
"updatedAt": "2026-09-25T10:15:00+00:00"
}
],
"meta": {
"currentPage": 1,
"from": 1,
"lastPage": 1,
"perPage": 20,
"to": 1,
"total": 1
}
},
"meta": {}
} /api/v1/external/tasks/{id} Scope: tasks:read
Recupera un'attività.
Parametri di percorso
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
id | integer | Sì | Parametro di percorso. ID dell'attività. Gli ID non numerici non corrispondono alla route e restituiscono 404. |
Richiesta
curl "https://app.taskforce.place/api/v1/external/tasks/1287" \
-H "Authorization: Bearer $TASKFORCE_TOKEN" \
-H "Accept: application/json" Risposta
{
"success": true,
"message": "",
"data": {
"id": 1287,
"projectId": 42,
"project": {
"id": 42,
"name": "Website relaunch",
"tenantId": 7
},
"title": "Write the API reference",
"description": "Cover projects, tasks and webhooks.",
"priority": 2,
"effort": 14400,
"spentTime": 0,
"typeId": 1,
"parentId": null,
"statusId": 3,
"status": {
"id": 3,
"name": "New"
},
"assigneeIds": [
15
],
"assignees": [
{
"id": 15,
"name": "Ana Costa",
"email": "[email protected]",
"avatar": null
}
],
"startedAt": "2026-09-25T00:00:00+00:00",
"endAt": "2026-10-03T00:00:00+00:00",
"createdAt": "2026-09-25T10:15:00+00:00",
"updatedAt": "2026-09-25T10:15:00+00:00"
},
"meta": {}
} /api/v1/external/tasks Scope: tasks:write
Crea un'attività in un progetto.
Body
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
title | string | Sì | Massimo 255 caratteri. |
project_id | integer | Sì | Deve essere un progetto del workspace del token (altrimenti 403). |
description | string | null | No | Testo libero. |
priority | integer | null | No | Da 1 a 5, predefinito 2 (High). Vedi le priorità. |
effort | integer | null | No | Impegno stimato in secondi, 0 o più. Non viene convertito: 4 ore sono 14400. |
status_id | integer | null | No | Predefinito 3 (New). Vedi gli stati delle attività. |
type_id | integer | null | No | Da 1 a 5, predefinito 1 (Task). Vedi i tipi di attività. |
parent_id | integer | null | No | ID di un'attività esistente, per creare una sotto-attività. |
assignee_ids | integer[] | null | No | ID utente. Ognuno deve esistere; gli utenti che non sono membri del workspace vengono scartati senza avviso. |
started_at | string | null | No | Qualsiasi stringa di data che PHP sappia interpretare, idealmente ISO 8601. |
end_at | string | null | No | Scadenza. Stesso formato di started_at. |
Richiesta
curl -X POST "https://app.taskforce.place/api/v1/external/tasks" \
-H "Authorization: Bearer $TASKFORCE_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"title":"Write the API reference","project_id":42,"effort":14400,"assignee_ids":[15],"end_at":"2026-10-03"}' Risposta
{
"success": true,
"message": "Task created successfully",
"data": {
"id": 1287,
"projectId": 42,
"project": {
"id": 42,
"name": "Website relaunch",
"tenantId": 7
},
"title": "Write the API reference",
"description": "Cover projects, tasks and webhooks.",
"priority": 2,
"effort": 14400,
"spentTime": 0,
"typeId": 1,
"parentId": null,
"statusId": 3,
"status": {
"id": 3,
"name": "New"
},
"assigneeIds": [
15
],
"assignees": [
{
"id": 15,
"name": "Ana Costa",
"email": "[email protected]",
"avatar": null
}
],
"startedAt": "2026-09-25T00:00:00+00:00",
"endAt": "2026-10-03T00:00:00+00:00",
"createdAt": "2026-09-25T10:15:00+00:00",
"updatedAt": "2026-09-25T10:15:00+00:00"
},
"meta": {}
} - Restituisce 201 con la nuova attività.
- Un
project_idche non esiste affatto non supera la validazione (422); uno che esiste in un altro workspace restituisce 403.
/api/v1/external/tasks/{id} Scope: tasks:write
Aggiorna alcuni campi di un'attività. I campi omessi restano invariati.
Parametri di percorso
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
id | integer | Sì | Parametro di percorso. ID dell'attività. Gli ID non numerici non corrispondono alla route e restituiscono 404. |
Body
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
title | string | No | Massimo 255 caratteri. |
project_id | integer | No | Sposta l'attività in un altro progetto dello stesso workspace. |
description | string | null | No | Invia null per svuotare. |
priority | integer | null | No | Da 1 a 5. |
effort | integer | null | No | Secondi. |
status_id | integer | No | Vedi gli stati delle attività. |
type_id | integer | No | Da 1 a 5. |
parent_id | integer | null | No | Invia null per scollegare dall'attività padre. |
assignee_ids | integer[] | No | Sostituisce l'intero elenco degli assegnatari. Invia [] per rimuovere tutti gli assegnatari. |
started_at | string | null | No | Stringa di data, oppure null. |
end_at | string | null | No | Stringa di data, oppure null. |
Richiesta
curl -X PATCH "https://app.taskforce.place/api/v1/external/tasks/1287" \
-H "Authorization: Bearer $TASKFORCE_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"status_id":5}' Risposta
{
"success": true,
"message": "Task updated successfully",
"data": {
"id": 1287,
"projectId": 42,
"project": {
"id": 42,
"name": "Website relaunch",
"tenantId": 7
},
"title": "Write the API reference",
"description": "Cover projects, tasks and webhooks.",
"priority": 2,
"effort": 14400,
"spentTime": 0,
"typeId": 1,
"parentId": null,
"statusId": 5,
"status": {
"id": 5,
"name": "Resolved"
},
"assigneeIds": [
15
],
"assignees": [
{
"id": 15,
"name": "Ana Costa",
"email": "[email protected]",
"avatar": null
}
],
"startedAt": "2026-09-25T00:00:00+00:00",
"endAt": "2026-10-03T00:00:00+00:00",
"createdAt": "2026-09-25T10:15:00+00:00",
"updatedAt": "2026-09-25T10:15:00+00:00"
},
"meta": {}
} title,project_id,status_idetype_idnon possono essere impostati a null.- Un body senza alcun campo riconosciuto restituisce 422
No fields to update.
/api/v1/external/tasks Scope: tasks:write
Come PATCH /tasks/{id}, con l'id dell'attività nel body. Utile per gli strumenti che non possono costruire URL dinamici.
Body
| Nome | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
id | integer | Sì | ID dell'attività, 1 o più. |
title | string | No | Massimo 255 caratteri. |
project_id | integer | No | Sposta l'attività in un altro progetto dello stesso workspace. |
description | string | null | No | Invia null per svuotare. |
priority | integer | null | No | Da 1 a 5. |
effort | integer | null | No | Secondi. |
status_id | integer | No | Vedi gli stati delle attività. |
type_id | integer | No | Da 1 a 5. |
parent_id | integer | null | No | Invia null per scollegare dall'attività padre. |
assignee_ids | integer[] | No | Sostituisce l'intero elenco degli assegnatari. Invia [] per rimuovere tutti gli assegnatari. |
started_at | string | null | No | Stringa di data, oppure null. |
end_at | string | null | No | Stringa di data, oppure null. |
Richiesta
curl -X PATCH "https://app.taskforce.place/api/v1/external/tasks" \
-H "Authorization: Bearer $TASKFORCE_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"id":1287,"assignee_ids":[15,21]}' Risposta
{
"success": true,
"message": "Task updated successfully",
"data": {
"id": 1287,
"projectId": 42,
"project": {
"id": 42,
"name": "Website relaunch",
"tenantId": 7
},
"title": "Write the API reference",
"description": "Cover projects, tasks and webhooks.",
"priority": 2,
"effort": 14400,
"spentTime": 0,
"typeId": 1,
"parentId": null,
"statusId": 3,
"status": {
"id": 3,
"name": "New"
},
"assigneeIds": [
15,
21
],
"assignees": [
{
"id": 15,
"name": "Ana Costa",
"email": "[email protected]",
"avatar": null
},
{
"id": 21,
"name": "Rui Lopes",
"email": "[email protected]",
"avatar": null
}
],
"startedAt": "2026-09-25T00:00:00+00:00",
"endAt": "2026-10-03T00:00:00+00:00",
"createdAt": "2026-09-25T10:15:00+00:00",
"updatedAt": "2026-09-25T10:15:00+00:00"
},
"meta": {}
} - Un
idmancante o non valido restituisce 422 conerrors.id.
Oggetto attività
Ogni endpoint delle attività restituisce le attività in questa forma.
| Campo | Tipo | Descrizione |
|---|---|---|
id | integer | ID dell'attività. |
projectId | integer | Progetto di appartenenza. |
project | object | null | { id, name, tenantId }. |
title | string | Titolo dell'attività. |
description | string | null | Testo libero o HTML dall'editor dell'app. |
priority | integer | Da 1 (Critical) a 5. Vedi le priorità. |
effort | integer | null | Impegno stimato in secondi. |
spentTime | integer | null | Tempo tracciato in secondi. Sola lettura. |
typeId | integer | Vedi i tipi di attività. |
parentId | integer | null | ID dell'attività padre, per le sotto-attività. |
statusId | integer | Vedi gli stati delle attività. |
status | object | null | { id, name } con il nome dello stato memorizzato. |
assigneeIds | integer[] | ID degli utenti assegnati. |
assignees | object[] | { id, name, email, avatar } per ogni assegnatario. |
startedAt | string | null | ISO 8601, UTC. |
endAt | string | null | Scadenza. ISO 8601, UTC. |
createdAt | string | ISO 8601, UTC. |
updatedAt | string | ISO 8601, UTC. |
Tipi
| type_id | Tipo | Note |
|---|---|---|
| 1 | Task | Predefinito quando type_id è omesso. |
| 2 | Bug | - |
| 3 | User Story | - |
| 4 | Feature | - |
| 5 | Epic | - |
Priorità
I numeri più bassi sono più urgenti. L'API accetta da 1 a 5; l'app etichetta solo da 1 a 4.
| priority | Etichetta | Note |
|---|---|---|
| 1 | Critica (Critical) | - |
| 2 | Alta (High) | Predefinita quando priority è omessa. |
| 3 | Media (Medium) | - |
| 4 | Bassa (Low) | - |
| 5 | (senza etichetta) | Accettata dall'API, ma l'app non ha un'etichetta per questo valore. Da evitare. |
Stati
Elencati nell'ordine della board delle attività.
| status_id | status.name | Mostrato nell'app come | Note |
|---|---|---|---|
| 3 | New | Nuova (New) | Predefinito per le nuove attività. |
| 4 | Active | Attiva (Active) | In corso. |
| 9 | Pending | In revisione (Review) | In attesa di revisione. L'API restituisce il nome memorizzato Pending. |
| 2 | Disable | In pausa (Paused) | L'API restituisce il nome memorizzato Disable. |
| 10 | Failed | Fallita (Failed) | - |
| 5 | Resolved | Risolta (Resolved) | Conta come completata. |
| 6 | Closed | Chiusa (Closed) | Conta come completata. |
status_id viene validato solo rispetto alla tabella degli stati, quindi per attività e progetti è accettato qualsiasi id da 1 a 13. Attieniti agli id elencati qui; gli altri (Enable, Paid, Deleted, Expired, Accepted, Declined) sono usati altrove nel prodotto. status.name nelle risposte è il nome memorizzato, che può differire dall'etichetta mostrata nell'app.