hosting

POST /v1/sites/{site_id}/translation/refresh

Read the site again now, rather than waiting for the next pass.

모든 hosting 엔드포인트

인증

Bearer 토큰으로 API 키를 전송하세요. 키는 반드시 sites.manage 권한을 가지고 있어야 하며, 권한이 없는 키는 404가 아닌 403으로 거부됩니다.

이 엔드포인트는 조직 ID를 받지 않습니다. 사용자의 키가 이미 속한 조직을 식별하며, 응답은 해당 조직으로 한정됩니다.

무료 체험하기

대괄호 안에 있는 모든 내용을 사용자 지정 값으로 바꾸고, 키 플레이스홀더는 대시보드의 키로 바꾸세요.

curl -X POST https://api.zinndigital.com/v1/sites/{site_id}/translation/refresh \
  -H "Authorization: Bearer zdk_live_…"

로그인하셨나요? 대시보드의 API 콘솔이 실제 조직 ID와 본인의 키를 자동으로 채우고 라이브 API를 대상으로 요청을 실행하므로 실제 응답을 확인할 수 있습니다. API 콘솔에서 이 엔드포인트를 여세요

상세 정보

Re-reads the site's pages and posts and registers anything new or changed. The sweep does this on its own cadence; this is the button for a customer who has just published something and wants it translated now. **This is a point of spend**, so it asks good standing (`CLAUDE.md` §2.46) and the tier allowance before it reads anything. A `402` means the account is on hold — the body says so and says that it resumes automatically — or that the site now holds more words than the tier covers, with both numbers. Idempotent in the way that matters: content already registered at the same hash is a no-op that marks nothing stale and translates nothing again, so pressing the button twice costs nothing. Requires `sites.manage`.

매개변수

이름유형필수설명
site_id (path)Uuid
Idempotency-Key (header)string아니요Client-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

응답

이름유형필수설명
documentsinteger
wordsinteger
fields_registeredinteger
fields_retiredintegerSources removed because the site no longer has them. Reported rather than silent: a destructive step that says nothing is indistinguishable from one that did nothing.
skipped_not_in_good_standingboolean아니요§2.46 — counted and surfaced, never silent. `documents: 0` because the account is on hold looks identical to a pass that could not see any work.
refusedstring아니요Why nothing was read, empty when it was.

이 엔드포인트가 반환할 수 있는 오류

401 · 402 · 403 · 404 · 429