agency-board

PATCH /v1/agency/boards/{boardId}/cards/{cardId}/attachments/{attachmentId}

Choose whether the client can see this file.

Све agency-board крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

curl -X PATCH https://api.zinndigital.com/v1/agency/boards/{boardId}/cards/{cardId}/attachments/{attachmentId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "visibility": <AgencyBoardVisibility> }'

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Параметри

НазивТипОбавезноШта је ово
boardId (path)UuidДаProject board ID (UUIDv7).
cardId (path)UuidДаBoard card ID (UUIDv7).
attachmentId (path)UuidДаBoard card attachment ID (UUIDv7).

Тело захтева

НазивТипОбавезноШта је ово
visibilityAgencyBoardVisibilityДа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…

Одговор

НазивТипОбавезноШта је ово
idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
card_idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
filenamestringДа—
content_typestringНе—
size_bytesintegerДа—
visibilityAgencyBoardVisibilityНе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…
scan_stateAgencyBoardAttachmentScanStateДаWhere an uploaded file is in the malware pipeline. ⛔ clean is the ONLY state the bytes are ever served in — pending, infected and error all refuse, including to the…
downloadablebooleanДа⭐ Whether these bytes may be fetched right now. Computed from the scan state by the engine rather than derived by a caller — two copies of "may this leave the building" is how the…
uploaded_byAgencyBoardActorНе—
created_atstringНе—

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 422