Finalize a Site
After uploading all files, call finalize to make the site live. The API verifies every file has been uploaded to storage before activating the version.Path Parameters
The site slug (e.g.,
bright-canvas-a7k2).Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | application/json |
Authorization | Conditional | Required for authenticated sites. Not needed for anonymous sites. |
Request Body
The version ID from the create/update response at
upload.versionId.Example
Response (200)
siteUrl.
Errors
| Status | Code | Reason |
|---|---|---|
| 404 | NOT_FOUND | Site not found |
| 401 | UNAUTHORIZED | Not authorized to finalize this site |
| 400 | INVALID_REQUEST | versionId doesn’t match the pending version |
| 400 | INVALID_REQUEST | Not all files have been uploaded |