v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Sitejet

Publish Sitejet domain

This function publishes a domain's Sitejet website.

get/Sitejet/start_publish

Query parameters

domainstring required
Example:example.com

The domain for the Sitejet website.

cleanupinteger
Example:1

Whether to cleanup the domain's document_root directory during the publication process.

  • 1 — Remove previous files in domain's document_root directory during the publication process.
  • 0 — Do not remove any files in domain's document_root directory during the publication process.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "start_publish",
  "module": "Sitejet",
  "result": {
    "data": {
      "file_name": "/home/cpuser/logs/publish_sitejet_76454.log",
      "pid": 123456
    },
    "metadata": {
      "transformed": 1
    },
    "status": 1
  }
}