POST /teams/{teamId}/boards/{id}/statuses
Cria status (autor do board, admin do team ou admin/moderador do canal)
- Access: Member with scope
- 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`.
201 Status; 400/403/404/409/422 (ver contrato). Onde: UI de status.
createBoardStatusHandler — POST /teams/{t}/boards/{id}/statuses.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
teamId | path | string | yes | |
id | path | string | yes |
Request body
application/json · Required
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | unico por board sem diferenciar maiuscula |
color | string | no | token da paleta fechada (slate gray red orange amber yellow lime green teal cyan blue indigo violet purple pink rose) ou hex #RRGGBB (normalizado para minusculas) |
category | string | yes | enum: |
linked_column_id | string<uuid> | null | no |
{
"name": "string",
"color": "string",
"category": "todo",
"linked_column_id": "00000000-0000-0000-0000-000000000000"
}Responses
201
criado
| Name | Type | Required | Description |
|---|---|---|---|
id | string<uuid> | yes | |
team_id | string<uuid> | yes | |
board_id | string<uuid> | yes | |
name | string | yes | |
color | string | yes | token da paleta fechada (slate gray red orange amber yellow lime green teal cyan blue indigo violet purple pink rose) ou hex #RRGGBB (normalizado para minusculas) |
category | string | yes | enum: |
position | integer | yes | |
linked_column_id | string<uuid> | null | yes | |
is_default | boolean | yes | |
created_at | string<date-time> | yes | |
updated_at | string<date-time> | yes |
400
corpo/cor/categoria/nome invalidos
401
sem sessao
403
nao-membro, ou membro que nao pode gerenciar o board
404
board invisivel
409
nome repetido (status_name_taken) ou coluna ja vinculada a outro status (column_already_linked)
422
coluna de outro board (linked column not in board) ou coluna is_done com status que nao e done (done column requires done status)
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 POST 'https://api-workspace.axuz.net/teams/TEAM_ID/boards/ID/statuses' \
-H "Authorization: Bearer $AXUZ_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string","color":"string","category":"todo","linked_column_id":"00000000-0000-0000-0000-000000000000"}'Node.js
const res = await fetch("https://api-workspace.axuz.net/teams/TEAM_ID/boards/ID/statuses", {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "string",
"color": "string",
"category": "todo",
"linked_column_id": "00000000-0000-0000-0000-000000000000"
}),
});
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(
"POST",
"https://api-workspace.axuz.net/teams/TEAM_ID/boards/ID/statuses",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
json={
"name": "string",
"color": "string",
"category": "todo",
"linked_column_id": "00000000-0000-0000-0000-000000000000",
},
timeout=30,
)
res.raise_for_status()
print(res.json())