Finalize an upload
const url = 'https://api.deploybase.eu/api/v1/api/v1/uploads/example/finalize';const options = {method: 'POST', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.deploybase.eu/api/v1/api/v1/uploads/example/finalize \ --header 'Authorization: <Authorization>'Verifies every manifest path arrived and publishes the deployment
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Upload session ID
Responses
Section titled “ Responses ”OK
object
object
object
BuildQueuedAt is when the build entered the queue. Subtract it from build_started_at for the queue wait.
ContentHash is the digest of the upload’s sorted manifest (path+hash pairs). Two uploads of identical content share it, which is what makes a re-upload a no-op.
ErrorCategory of a failed build: build_error, configuration, platform, timeout or platform_restart. Always a category, never a raw error message.
Framework the project was built as, e.g. “astro”. “unknown” when unresolved.
PackageManager used for this build: npm, pnpm, yarn or bun.
Queue is set only while Status is queued: where this deployment sits in the build queue (DEP-326). Never stored.
object
object
Source is where this deployment’s files came from: git or upload.
UploadLabel is the user-supplied name for an upload, standing in for the commit message a git deployment carries.
Warnings are user-facing notes about what this deploy published (DEP-442). Written once, with the terminal status, in the same UPDATE. Each stores a code; the wording and the remedy are rendered from it at read time — see deployment_warning.go.
object
Paths are the entries the warning is about, relative to the output directory. Empty for warnings that are about configuration rather than files.
Example
{ "data": { "source": "git", "status": "pending", "warnings": [ { "code": "OUTPUT_DIR_IS_REPO_ROOT" } ] }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unknown session
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Files still missing, or a finalize is already running
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Session is no longer open
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Publish failed
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}