Axuz Developers

PUT /teams/{teamId}/boards/{id}/channel

Vincula/desvincula o board a um canal (timeline_id null desvincula)

  • 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`.

Exige poder gerenciar o board (autor, owner/admin do team ou admin/moderador do canal ATUAL) e enxergar o canal alvo com escopo tasks (canal privado sem acesso: 404, sem vazar existencia). Canal de outro team: 404. 1 board por canal. Idempotente. Desvincular nao apaga nada (atencao: o board deixa de herdar a visibilidade do canal). Eventos board.channel_linked / board.channel_unlinked.

Parameters

NameInTypeRequiredDescription
teamIdpathstringyes
idpathstringyes

Request body

application/json · Required

NameTypeRequiredDescription
timeline_idstring<uuid> | nullyes
{
  "timeline_id": "00000000-0000-0000-0000-000000000000"
}

Responses

200

board atualizado (com timeline_id)

400

timeline_id ausente ou invalido

401

sem sessao

403

sem permissao de gerenciar o board

404

board invisivel, canal inexistente, de outro team ou sem acesso

409

o canal ja tem outro board

NameTypeRequiredDescription
erroranyyes
board_idstring<uuid>yes

429

Limite de requisições excedido.

NameTypeRequiredDescription
errorstringyes

500

Erro interno. Tente de novo com backoff; reporte o X-Request-Id.

NameTypeRequiredDescription
errorstringyes

Examples

"Try it" is turned off in this reference. Use the examples with your test credential.

curl

curl -sS -X PUT 'https://api-workspace.axuz.net/teams/TEAM_ID/boards/ID/channel' \
  -H "Authorization: Bearer $AXUZ_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"timeline_id":"00000000-0000-0000-0000-000000000000"}'

Node.js

const res = await fetch("https://api-workspace.axuz.net/teams/TEAM_ID/boards/ID/channel", {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "timeline_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(
    "PUT",
    "https://api-workspace.axuz.net/teams/TEAM_ID/boards/ID/channel",
    headers={
        "Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
    },
    json={
        "timeline_id": "00000000-0000-0000-0000-000000000000",
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())