board-github

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

Set or clear one field value on a GitHub Project item.

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}/field \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "field_node_id": <string> }'

Đã đă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

`value: null` **clears** the field, through a different GitHub mutation. Sending an empty string would set the field *to* the empty string, which a date field refuses and a text field renders as a permanent blank chip — a save that looks like it worked. Only TEXT, NUMBER, DATE, SINGLE_SELECT and ITERATION are writable; every other type is either computed by GitHub or set on the underlying issue. The `writable` flag on each field in the connection payload is computed server-side so the UI never keeps its own copy of that list.

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ì
field_node_idstring
valueobjectKhông`null` CLEARS the field, through a different GitHub mutation. An empty string would set the field to the empty string.

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