agency-board
PUT /v1/agency/boards/{boardId}/cards/{cardId}/labels
Set the labels on a card.
Uwierzytelnianie
Wyślij klucz API jako token bearer. Ten punkt końcowy nie określa konkretnego uprawnienia w specyfikacji, więc nadaj swojemu kluczowi minimum potrzebnych uprawnień i sprawdź odpowiedź zamiast zakładać.
Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.
Wypróbuj
Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.
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[]> }'Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API
Szczegóły
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.
Parametry
| Nazwa | Typ | Wymagane | Co to jest |
|---|---|---|---|
boardId (path) | Uuid | Tak | Project board ID (UUIDv7). |
cardId (path) | Uuid | Tak | Board card ID (UUIDv7). |
Treść żądania
| Nazwa | Typ | Wymagane | Co to jest |
|---|---|---|---|
label_ids | string[] | Tak | 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 | Nie | — |
updated_by | AgencyBoardActor | Nie | Who last edited this card. Moves exactly when `updated_at` does. |
assignee | AgencyBoardActor | Nie | The resolved form of `assignee_id`. |
Odpowiedź
| Nazwa | Typ | Wymagane | Co to jest |
|---|---|---|---|
id | Uuid | Tak | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
board_id | Uuid | Tak | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
column_id | Uuid | Tak | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
title | string | Tak | — |
body | string | Nie | — |
visibility | AgencyBoardVisibility | Tak | 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 th… |
position | integer | Tak | — |
assignee_id | string | Nie | — |
due_at | string | Nie | — |
created_by_client | boolean | Nie | Whether the client raised this card themselves. |
archived_at | string | Nie | — |
cover_colour | AgencyBoardLabelColour | Nie | 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[] | Nie | 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 vocab… |
created_at | string | Nie | — |
updated_at | string | Nie | — |
Błędy, które ten punkt końcowy może zwrócić
401 · 403 · 404 · 422