Rename a media folder or move it under another
PATCH
http://localhost:4000/api/v1 /media/folders/{id} parentId: null moves it to the top.
Parameters
idstring
path
required
Request body
application/json
namestring
parentIdstring
{
"name": "string",
"parentId": "string"
}Code samples
cURL
curl -X PATCH "http://localhost:4000/api/v1/media/folders/{id}" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","parentId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}Updated