Skip to main content
PUT
Needs folders:update, and a role in the workspace that can edit media. See Permissions.
Send at least one of name, color and parent_id; what you leave out stays as it is. parent_id moves the folder into another folder of the same workspace, and parent_id: null moves it to the top. A folder can’t go into itself or into one of its own subfolders. Its files and subfolders move with it. PATCH does the same as PUT.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

folder_id
integer
required

The folder's id.

Body

application/json
name
string
Maximum string length: 255
color
string

A hex color, like #0EA5E9.

parent_id
integer | null

A folder of the same workspace to move it into; null for the top of the library.

Response

The folder as saved.

A folder of the media library.

id
integer
required

The folder's id. Uploads and List media take it as folder_id.

uuid
string<uuid>
required
workspace_id
integer
required
name
string
required
color
string | null
required

A hex color, like #4F46E5.

parent_id
integer | null
required

The folder it is in; null at the top of the library.

type
enum<string>
required

Read from the name: the folders PostSyncer makes for its own work are DEMO ("Product Demos"), UGC ("UGC Videos"), HOOK ("Hooks Videos"), SOUND ("Sounds"), AI_GENERATED ("AI Generated") and AI_GENERATED_REFERENCE ("References"). Every other folder is DEFAULT.

Available options:
DEFAULT,
DEMO,
UGC,
HOOK,
SOUND,
AI_GENERATED,
AI_GENERATED_REFERENCE
parent
object | null

Get folder and Update folder only: the folder it is in (without its own parent), or null at the top of the library.