board-github
POST /v1/board-github/links/{linkId}/sync
Refresh one connection from GitHub now.
Аутентификација
Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X POST https://api.zinndigital.com/v1/board-github/links/{linkId}/sync \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
The Temporal sweep does this every five minutes and the webhook does it in seconds; this is the button for somebody who does not want to wait. Both cursors come back. last_attempted_at moves for every attempt and last_synced_at only on success — so "last synced 4 minutes ago" beside "last attempted 10 seconds ago" is how a customer sees that we are trying and GitHub is refusing. One timestamp cannot say that.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
linkId (path) | string | Да | The GitHub Projects connection. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
ok | boolean | Не | A distinct field rather than something inferred from the counts. A project that legitimately has no items and a sync that could not see anything are the same zeros. |
error | string | Не | — |
items_seen | integer | Не | — |
items_created | integer | Не | — |
items_updated | integer | Не | — |
items_archived | integer | Не | — |
fields_seen | integer | Не | — |
conflicts | integer | Не | — |
pushed_back | integer | Не | Fields OUR value won and were therefore re-pushed to GitHub. Keeping a won value only on our side would be a resolution that resolves nothing and reports the same conflict on the… |
pages | integer | Не | — |
last_synced_at | string | Не | — |
last_attempted_at | string | Не | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 404