agency-board
PUT /v1/agency/boards/{boardId}/cards/{cardId}/labels
Set the labels on a card.
Аутентификација
Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X PUT https://api.zinndigital.com/v1/agency/boards/{boardId}/cards/{cardId}/labels \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "label_ids": <string[]> }'Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
Replaces the card's whole label set. Every id is re-checked against this board, so a label from another board is refused rather than quietly attached.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
boardId (path) | Uuid | Да | Project board ID (UUIDv7). |
cardId (path) | Uuid | Да | Board card ID (UUIDv7). |
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
label_ids | string[] | Да | The COMPLETE set the card should wear afterwards — this replaces, it does not add. An empty array takes every label off, which is why the array may be empty: an add/remove pair… |
created_by | AgencyBoardActor | Не | — |
updated_by | AgencyBoardActor | Не | Who last edited this card. Moves exactly when updated_at does. |
assignee | AgencyBoardActor | Не | The resolved form of assignee_id. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
id | Uuid | Да | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
board_id | Uuid | Да | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
column_id | Uuid | Да | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
title | string | Да | — |
body | string | Не | — |
visibility | AgencyBoardVisibility | Да | Who may see this object. internal is always the default. A card reaches the client only when it is client and its column is too — an AND, not inheritance, because that… |
position | integer | Да | — |
assignee_id | string | Не | — |
due_at | string | Не | — |
created_by_client | boolean | Не | Whether the client raised this card themselves. |
archived_at | string | Не | — |
cover_colour | AgencyBoardLabelColour | Не | A colour band across the top of the card, or the empty string for none. ⛔ Shares the label palette rather than declaring a second one: two palettes on one screen is how a cover… |
labels | AgencyBoardLabel[] | Не | The labels this card wears, in the board's label order. ⛔ Agency-only — the client's projection of a card carries no labels at all, because a label is the agency's private… |
created_at | string | Не | — |
updated_at | string | Не | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 422