KuikCodeDocs
APIReferenceSites

Redeploy a hosted site

POST
/sites/{id}/deploy

Replaces every file of the site with a new ZIP, same rules as publishing. The address stays the same, so codes pointing at it keep working. Visitors switch to the new version only once every file is in place.

AuthorizationBearer <token>

An API key from Settings, Developers: Authorization: Bearer kc_live_...

In: header

Path Parameters

id*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/sites/string/deploy" \  -H "Content-Type: application/json" \  -d '{}'
{  "site": {    "id": "string",    "name": "string",    "subdomain": "string",    "url": "string",    "version": 0,    "fileCount": 0,    "totalSize": 0,    "previewUrl": "string",    "usedBy": 0,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "skipped": [    "string"  ]}