Use this skill when the user wants to publish a new article, update an existing draft, regenerate an article code, unpublish an article, or permanently delete an article in this repo. This is the default workflow for article publishing through openclaw.
title, categoryLabel, categoryHref, thumb, and either contentHtml or a structured body.slug is missing, use GET /api/admin/articles/slug.publishedDate is missing, default to the current Shanghai date.x-api-key header when using openclaw.ADMIN_API_KEY for that header and still accepts the normal browser session cookie for the admin console.authorName: 无界authorRole: 管理员authorAvatar: the existing default avatar URL in the admin console.POST /api/admin/articles with the same JSON body the admin console sends.slug to update an article.GET /api/admin/articles/{slug} to read back the saved draft or unpublished article./view/{code}/{title-slug}/ to confirm the front-end page.PATCH /api/admin/articles/{slug} with { "isPublished": false } to unpublish.PATCH /api/admin/articles/{slug} with { "isPublished": true } to republish.DELETE /api/admin/articles/{slug} for permanent removal.code as a 10-character alphanumeric random string; do not invent a different format.x-api-key: and omit browser-session-specific assumptions.See references/api_reference.md for the publish payload, default values, and route contract.
共 1 个版本