Run steps as the site, in order, stopping at the first failure; composer:install or the recipe's allowed commands
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/tenants/{tid}/sites/{id}/php-app/run may answer 202Run steps as the site, in order, stopping at the first failure; composer:install or the recipe's allowed commands
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
object
stepsarray<string> required- min items 1
- max items 10
Example
{
"steps": [
"string"
]
}Responses
202 Queued
Content type: application/json
recipestring requiredAllowed values:"""laravel""symfony""composer"doc_rootstring requiredSubfolder IIS serves: public for Laravel and Symfony
writablearray<string> requiredcommandsarray<string> requiredSteps this recipe may run
recipe_commandsmap<string, array<string>> requiredSteps each recipe may run, so a recipe being chosen offers its own before it is saved
after_deployarray<string> requiredschedulerboolean requiredenv_allowedboolean requiredidstring requiredstatestring requirederror_codestring optionalresultstring optional
Fields of PHPAppJob are shown above.
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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required