Content
Rename a content key (and optionally its URL)
Re-keys a page: the last path segment becomes newSlug, the directory and extension stay. Works on a draft page and on a published static page. key is sent in the body, so a nested key such as blog/post.html needs no percent-encoding. The change is staged — publish to make it live.
post/api/v1/sites/{slug}/content/rename
Request
- Base URL: https://api.dotsy.ai
- URL: https://api.dotsy.ai/api/v1/sites/{slug}/content/rename
- Auth: HTTP bearer
Path parameters
slugstring required
Example:acme-studio
Site slug or site id (UUID). An old slug answers 301/308 and a site id 307 to the canonical slug path.
Request body
Example request
{
"key": "blog/untitled.html",
"newSlug": "my-first-post"
}Response
Renamed (staged).
Example response
{
"key": "blog/my-first-post.html",
"path": "/blog/my-first-post",
"oldKey": "blog/untitled.html"
}Changes
No recorded changes to this operation across all 1 revision of this API.