Skip to content
BolderBolder Developers
Esc
↑↓navigate↵open⌘Jpreview

Move or rename theme files

Moves a public/ file, or every file under a public/ folder (subfolders included), in one step. Editable files keep their version history; uploaded files keep their content. Refused (422) when the target path is taken, when a folder would move into itself, or for paths outside public/. URLs follow the new path.

POST/themes/{theme_id}/files/move
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
theme_idstringrequired
Request body
requiredapplication/json
fromstringrequired
tostringrequired
Responses
200

The files moved

filesobject[]
Show properties
Array of object
fromstring
tostring
idstring
stored_asstring
Allowed:templateasset
401

Unauthorized

403

Access denied

422

The target is taken, the source doesn't exist, or the paths are not in public/

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://api.onbolder.com/v2/themes/abc123/files/move' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "from": "public/img",
  "to": "public/images"
}'
Response
{
  "files": [
    {
      "from": "public/img/logo.png",
      "to": "public/images/logo.png",
      "id": "string",
      "stored_as": "template"
    }
  ]
}

Was this page helpful?