İçeriğe geç

Yayın

Dosyaları bildirme, eksikleri yükleme, sürümü tamamlama ve uzun işlemleri izleme.

Bu sayfada

Kavramlar: Yayın

Uç özetleri OpenAPI belgesinden gelir ve İngilizcedir.

POST/v1/publish

Declare files for a new version; returns upload URLs for missing files. Without credentials a new ownerless project is created and its project key is returned once

İşlem (MCP aracı)
publish
Kimlik
API anahtarı (pfa_…)Proje anahtarı (pfc_…)Kimlik gerekmez

Parametreler

Parametreler
AdYerTürAçıklama
Idempotency-Keyİsteğe bağlıbaşlıkstringReplays the first response for 24 hourslength 8–128

İstek gövdesi

application/jsonPublishRequestZorunlu

İstek gövdesi
AdTürAçıklama
projectİsteğe bağlıstring
nameİsteğe bağlıstring
titleİsteğe bağlıstring
filesZorunluFile[]min items 1
modeİsteğe bağlı"snapshot" | "additive"
targetİsteğe bağlı"live" | "preview"
noteİsteğe bağlıstringmax length 500
accessİsteğe bağlı"private" | "public"First access of a project this publish creates (not for an existing project or without an account). Public in a team that keeps new sites private needs sharing permission and a full-access key (403 access_change_forbidden)
sourceİsteğe bağlı"api" | "cli" | "mcp" | "drop" | "agent" | "git"
gitİsteğe bağlıobjectFrom CI: the branch decides live or preview (production branch) and the branch preview address when target is not given
git.branchZorunlustringmax length 255
git.commitİsteğe bağlıstringpattern ^[0-9a-fA-F]{7,64}$
git.messageİsteğe bağlıstringmax length 10000
git.authorİsteğe bağlıstringmax length 200

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200No change (noop)PublishResponse
201Version createdPublishResponse
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
402ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)
413ProblemProblem (RFC 9457)
422ProblemProblem (RFC 9457)
429ProblemProblem (RFC 9457)
451ProblemProblem (RFC 9457)
503ProblemProblem (RFC 9457)

PUT/v1/uploads/{token}

Upload one file's bytes to a signed upload URL

İşlem (MCP aracı)
uploadFile
Kimlik
Önceki yanıttaki imzalı adres

Parametreler

Parametreler
AdYerTürAçıklama
tokenZorunluyolstringSigned upload token from `publish`

İstek gövdesi

application/octet-streamstringZorunlu

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
204Stored (or already stored)İçerik yok
401ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)
413ProblemProblem (RFC 9457)
422ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

POST/v1/versions/{version}/finalize

Finalize uploads and deploy; waits until ready (up to `wait` seconds)

İşlem (MCP aracı)
finalizeVersion
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)Proje anahtarı (pfc_…)

Parametreler

Parametreler
AdYerTürAçıklama
versionZorunluyolstringVersion id (`ver_…`)
Idempotency-Keyİsteğe bağlıbaşlıkstringReplays the first response for 24 hourslength 8–128
waitİsteğe bağlısorguintegermin 0, max 60, default 30
asyncİsteğe bağlısorgu"1"

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200Version finished (ready or failed)VersionResult
202Still deployingVersionResult
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)
422ProblemProblem (RFC 9457)
429ProblemProblem (RFC 9457)
503ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

GET/v1/operations/{operation}

Status of a long-running operation

İşlem (MCP aracı)
getOperation
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)Proje anahtarı (pfc_…)

Parametreler

Parametreler
AdYerTürAçıklama
operationZorunluyolstringOperation id (`opr_…`)

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKOperation
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.