board-github

PUT /v1/board-github/links/{linkId}/items/{itemId}/archive

Archive a GitHub Project item, or restore it.

Tất cả các điểm cuối board-github

Xác thực

Gửi khóa API dưới dạng mã thông báo bearer. Điểm cuối này không nêu rõ quyền cụ thể trong thông số kỹ thuật, vì vậy hãy cấp cho khóa của bạn quyền tối thiểu cần thiết và kiểm tra phản hồi thay vì phỏng đoán.

Endpoint này không nhận ID tổ chức. Khóa của bạn đã xác định tổ chức mà nó thuộc về và phản hồi được giới hạn trong phạm vi đó.

Dùng thử

Thay thế bất kỳ nội dung nào trong ngoعل (angle brackets) bằng giá trị của riêng bạn và trình giữ chỗ key bằng một key từ trang tổng quan của bạn.

curl -X PUT https://api.zinndigital.com/v1/board-github/links/{linkId}/items/{itemId}/archive \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "archived": <boolean> }'

Đã đăng nhập? Bảng điều khiển API trong trang quản lý của bạn sẽ tự điền ID tổ chức thực tế và khóa của riêng bạn, sau đó chạy yêu cầu đối với API trực tiếp để bạn có thể xem phản hồi thực tế. Mở điểm cuối này trong bảng điều khiển API

Chi tiết

The reversible half of clearing a board, and how a person empties a Done column without destroying anything. `archived` is required and carries both directions; there is no default, because a default would make a request that lost its body in a proxy mean *archive* — the opposite of a restore, applied silently. `isArchived` in the response is read back from GitHub with a second query rather than taken from the mutation's own echo, which returns the item it was handed and would therefore agree with us whether or not GitHub applied anything.

Tham số

TênLoạiBắt buộcNội dung này là gì
linkId (path)stringThe GitHub Projects connection.
itemId (path)stringThe item, by OUR id — not GitHub's node id, which is not a path-safe value.

Nội dung yêu cầu

TênLoạiBắt buộcNội dung này là gì
archivedbooleanRequired, with no default. A default would make a request that lost its body mean *archive*, so a restore would silently do the opposite of what was asked.

Phản hồi

TênLoạiBắt buộcNội dung này là gì
idstringKhông
item_node_idstringKhông
item_typestring<ISSUE, PULL_REQUEST, DRAFT_ISSUE, REDACTED>Không
content_numberintegerKhông
repositorystringKhông
titlestringKhông
bodystringKhông
urlstringKhông
statestringKhông
is_archivedbooleanKhông
field_valuesobjectKhôngKeyed by the field's **node id**, never its name. A project owner renaming a field would otherwise orphan every stored value at once, and the next sync would read it as "every i…
github_updated_atstringKhông
local_updated_atstringKhôngWhen WE last changed this item. Set only by a local edit, never by a sync — a sync that stamped it would make every imported item look locally-edited and hand every subsequent c…
card_idstringKhông

Các lỗi điểm cuối này có thể trả về

401 · 403 · 404 · 422