PATCH /api/v1/instances/{instance_id}
Update Instance
Auth: Authorization: Bearer <token> required
Request
Section titled “Request”curl -sS -X PATCH "https://entherium.duckdns.org:8443/api/v1/instances/<instance_id>" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{"attached_sc":"<attached_sc>","backend":"<backend>","base_url":"<base_url>","caption":"<caption>","gcs_bucket":"<gcs_bucket>","hostname":"<hostname>","is_active":"<is_active>","registry":"<registry>","template_dir":"<template_dir>","theme_repo":"<theme_repo>","theme_sha":"<theme_sha>","tier":"<tier>","vps_ip":"<vps_ip>","vps_port":"<vps_port>"}'Response 200
Section titled “Response 200”The contract carries no example for this response; schema: HugoInstanceRead. Field-level shape: interactive explorer.
Returns
Section titled “Returns”HugoInstanceRead — Successful Response
| Field | Type | Description |
|---|---|---|
attached_sc | integer | null (opt.) | |
backend | "gcs" | "local-fs" | "wp" (opt.) | |
base_url | string | null (opt.) | |
caption | string | null (opt.) | |
createtime | string | |
gcs_bucket | string | null (opt.) | |
guid | integer | |
hostname | string | null (opt.) | |
instance_id | string | |
is_active | boolean (opt.) | |
last_build_at | string | null | |
last_publish_at | string | null | |
owner | integer | null (opt.) | |
posts_count | integer | |
registry | object (opt.) | |
rsid | integer | |
template_dir | string | null (opt.) | |
theme_repo | string | null (opt.) | |
theme_sha | string | null (opt.) | |
tier | "prod" | "dev" | "test" | "staging" (opt.) | |
updatedby | integer | null (opt.) | |
updatetime | string | |
vps_ip | string | null (opt.) | |
vps_port | integer | null (opt.) | |
warmup_state | "cold" | "warming" | "warm" |
Parameters
Section titled “Parameters”| Parameter | In | Required | Type | Default | Constraints | Description |
|---|---|---|---|---|---|---|
instance_id | path | yes | string | — | — | |
Idempotency-Key | header | no | string | — | uuid | Optional. |
Request body
Section titled “Request body”| Field | Type | Required | Description |
|---|---|---|---|
attached_sc | integer | null | no | |
backend | "gcs" | "local-fs" | "wp" | null | no | |
base_url | string | null | no | |
caption | string | null | no | |
gcs_bucket | string | null | no | |
hostname | string | null | no | |
is_active | boolean | null | no | |
registry | object | null | no | |
template_dir | string | null | no | |
theme_repo | string | null | no | |
theme_sha | string | null | no | |
tier | "prod" | "dev" | "test" | "staging" | null | no | |
vps_ip | string | null | no | |
vps_port | integer | null | no |
Errors
Section titled “Errors”| Code | Meaning | Body |
|---|---|---|
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
Every error body is {detail, code?, request_id, doc_url} — request_id is the value to quote, doc_url points at the Errors reference.