Change them
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/sites/{id}/deploy/settingsChange them. Turning the migration gate on needs database.write and acknowledged_one_way
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
How a site's application is deployed (ADR 0170, 0173, 0174)
strategystring requiredAllowed values:"restart""blue_green""files"health_pathstring requireddrain_secondsinteger requiredrequire_approvalboolean requiredbuildobject requiredcpu_percentinteger requiredmemory_mbinteger requiredminutesinteger required
migrationobject requiredenabledboolean requiredkindstring requireddjango, alembic, prisma, knex, ef_bundle, artisan or custom
commandarray<string> requiredcustom only: the runtime (node, python, dotnet) or an .exe of the release, then plain arguments
databasesarray<string> requiredon_failurestring requiredAllowed values:"restore""keep"timeout_minutesinteger requiredacknowledged_one_wayboolean requiredMust be true to turn the gate on: going back in code does not go back in data
standby_portinteger required read-onlylive_releasestring required read-onlylive_epochinteger (int64) required read-onlystrategiesarray<string> required read-onlymigration_kindsarray<string> required read-only
Example
{
"strategy": "restart",
"health_path": "string",
"drain_seconds": 0,
"require_approval": true,
"build": {
"cpu_percent": 0,
"memory_mb": 0,
"minutes": 0
},
"migration": {
"enabled": true,
"kind": "string",
"command": [
"string"
],
"databases": [
"string"
],
"on_failure": "restore",
"timeout_minutes": 0,
"acknowledged_one_way": true
}
}Responses
200 Saved
Content type: application/json
How a site's application is deployed (ADR 0170, 0173, 0174)
Fields of DeploySettings are shown above.
Example
{
"strategy": "restart",
"health_path": "string",
"drain_seconds": 0,
"require_approval": true,
"build": {
"cpu_percent": 0,
"memory_mb": 0,
"minutes": 0
},
"migration": {
"enabled": true,
"kind": "string",
"command": [
"string"
],
"databases": [
"string"
],
"on_failure": "restore",
"timeout_minutes": 0,
"acknowledged_one_way": true
},
"standby_port": 0,
"live_release": "string",
"live_epoch": 0,
"strategies": [
"string"
],
"migration_kinds": [
"string"
]
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required