Rename a folder or move it under another one
Rename a folder or move it under another one (media:write)
Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.
PATCH
A folder can't move inside itself or one of its own folders (422).
header
AuthorizationBearer <token>API key (stk_...), or in the Community Edition the access token (stk_local_...)
id*stringapplication/json- body
name?stringLength
1 <= length <= 80parent_id?stringA folder id, or empty for the top level
The folder
application/json- response
A virtual folder of the media library
id*stringparent_id*stringThe folder it sits in; empty at the top level
name*stringfiles*integerFiles directly in this folder (not in its subfolders)
created_at*stringFormat
date-timecurl -X PATCH 'https://staqly.example.com/v1/media-folders/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "parent_id": "string", "name": "string", "files": 0, "created_at": "2019-08-24T14:15:22Z"}