API referenceSections

Choose a recipe (empty removes it), the steps run after a Git deploy, and Laravel's scheduler

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/sites/{id}/php-app

Choose a recipe (empty removes it), the steps run after a Git deploy, and Laravel's scheduler

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • recipe string required
    Allowed values: "" "laravel" "symfony" "composer"
  • after_deploy array<string> optional
    • max items 10
  • scheduler boolean optional
Example
{
  "recipe": "",
  "after_deploy": [
    "string"
  ],
  "scheduler": true
}

Responses

200 Applied

Content type: application/json

  • recipe string required
    Allowed values: "" "laravel" "symfony" "composer"
  • doc_root string required

    Subfolder IIS serves: public for Laravel and Symfony

  • writable array<string> required
  • commands array<string> required

    Steps this recipe may run

  • recipe_commands map<string, array<string>> required

    Steps each recipe may run, so a recipe being chosen offers its own before it is saved

  • after_deploy array<string> required
  • scheduler boolean required
  • env_allowed boolean required
  • recipe_job PHPAppJob | null required
    • id string required
    • state string required
    • error_code string optional
    • result string optional
  • last_run PHPAppJob | null required

    Fields of PHPAppJob are shown above.

  • env_job PHPAppJob | null required

    Fields of PHPAppJob are shown above.

Example
{
  "recipe": "",
  "doc_root": "string",
  "writable": [
    "string"
  ],
  "commands": [
    "string"
  ],
  "recipe_commands": {
    "key": [
      "string"
    ]
  },
  "after_deploy": [
    "string"
  ],
  "scheduler": true,
  "env_allowed": true,
  "recipe_job": {
    "id": "string",
    "state": "string",
    "error_code": "string",
    "result": "string"
  },
  "last_run": {
    "id": "string",
    "state": "string",
    "error_code": "string",
    "result": "string"
  },
  "env_job": {
    "id": "string",
    "state": "string",
    "error_code": "string",
    "result": "string"
  }
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required