PATCH /teams/{teamId}/tasks/{id}
Edita tarefa (aceita status_id e icon)
- Access: Team member
- Service:
https://api-workspace.axuz.net
Accepted authentication
sessionCookie— Sessão plena Axuz (cookie de sessão da casa). Sessão restrita é 403 enrollment_required.bearerSession— JWT de acesso da sessão em `Authorization: Bearer`.
status_id aplica o status (e a regra de vinculo com a coluna); status texto legado continua valido e escolhe o default da categoria. Os dois juntos: 400 (send either status or status_id). icon: "" ou clear_icon: true limpa o icone.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
teamId | path | string | yes | |
id | path | string | yes |
Request body
application/json
| Name | Type | Required | Description |
|---|---|---|---|
status_id | string<uuid> | no | |
icon | string | no | |
clear_icon | boolean | no |
{
"status_id": "00000000-0000-0000-0000-000000000000",
"icon": "string",
"clear_icon": true
}Responses
200
atualizada
| Name | Type | Required | Description |
|---|---|---|---|
status | string | no | enum: |
status_id | string<uuid> | null | no | |
icon | string | null | no |
400
invalido
401
Sem credencial valida
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
403
Erro ({"error": "..."})
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
404
Erro ({"error": "..."})
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
413
imagem acima de 10 MB
422
status_id de outro board/tenant (status does not belong to the board)
429
Limite de requisições excedido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
500
Erro interno. Tente de novo com backoff; reporte o X-Request-Id.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
Examples
"Try it" is turned off in this reference. Use the examples with your test credential.
curl
curl -sS -X PATCH 'https://api-workspace.axuz.net/teams/TEAM_ID/tasks/ID' \
-H "Authorization: Bearer $AXUZ_TOKEN" \
-H "Content-Type: application/json" \
-d '{"status_id":"00000000-0000-0000-0000-000000000000","icon":"string","clear_icon":true}'Node.js
const res = await fetch("https://api-workspace.axuz.net/teams/TEAM_ID/tasks/ID", {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"status_id": "00000000-0000-0000-0000-000000000000",
"icon": "string",
"clear_icon": true
}),
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());Python
import os
import requests
res = requests.request(
"PATCH",
"https://api-workspace.axuz.net/teams/TEAM_ID/tasks/ID",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
json={
"status_id": "00000000-0000-0000-0000-000000000000",
"icon": "string",
"clear_icon": True,
},
timeout=30,
)
res.raise_for_status()
print(res.json())