POST /api/v1/publish/article
Publish Article
Publish one article to its Hugo instance (real the publishing hub flow, async).
404s if the article/instance is unknown; 400 if the instance has no the publishing hub config (so a publish that can never succeed isn’t accepted).
Auth: Authorization: Bearer <token> required
Request
Section titled “Request”curl -sS -X POST "https://entherium.duckdns.org:8443/api/v1/publish/article" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{"article_guid":31567,"instance_id":"example-prod-hugo-vps"}'Response 202
Section titled “Response 202”The contract carries no example for this response; schema: TaskAccepted. Field-level shape: interactive explorer.
Returns
Section titled “Returns”TaskAccepted — Successful Response
| Field | Type | Description |
|---|---|---|
detail | object | null (opt.) | |
status | string (opt.) | |
task_id | string |
Parameters
Section titled “Parameters”| Parameter | In | Required | Type | Default | Constraints | Description |
|---|---|---|---|---|---|---|
Idempotency-Key | header | no | string | — | uuid | Optional. |
Request body
Section titled “Request body”| Field | Type | Required | Description |
|---|---|---|---|
article_guid | integer | yes | |
instance_id | string | yes |
Example:
{ "article_guid": 31567, "instance_id": "example-prod-hugo-vps"}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.