- Keep one brand together: a folder per customer or per store, so a render job only ever looks at the templates that belong to it.
- Hand a batch to an agent: point it at one folder instead of asking it to guess from names.
- Split a catalogue: by season, product type or size, at whatever depth the catalogue already has.
Where a mockup lives
- A mockup is in one folder, or in none. There is no second place.
- Folders nest up to 100 levels, counting the folder you are moving and everything inside it.
- Two folders beside each other cannot share a name, whatever the capitalisation. The same create call can therefore be made twice without building a second copy.
- Moving never changes a mockup’s id. Renders, webhooks and every integration keep working against the id they already hold.
folder_uuid reads three ways, and the difference matters on every list call:
The same three readings apply to
parent_uuid when you list folders.
Create a folder
cURL
Response
parent_uuid to create it inside another folder instead:
cURL
Walk the tree
List folders pages the same way the mockup lists do, withlimit and offset, and sorts by name.
cURL
folder_count, psd_mockup_count and
photo_mockup_count for what it holds directly, which is enough to draw a
tree without a second call per node.
Get folder adds two things
the list does not: path, the trail of folders above this one, and the
total_ counts for everything inside it at any depth.
List what is in a folder
Both mockup lists takefolder_uuid.
cURL
/api/v1/photo-mockups for the photo mockup side. Every mockup in
either list now carries its own folder_uuid, so a single page of results
tells you where each template sits.
Move mockups and folders
Move into folder takes any mix of PSD mockups, photo mockups and folders in one call. Either everything in the call moves or nothing does, so a half finished move is not a state you have to handle.cURL
"target_folder_uuid": null to move the selection back to the top of the
library. A folder moves with everything inside it. Each list takes up to 500
ids.
To move a single mockup you can also patch it directly:
cURL
"folder_uuid": null moves the mockup to
the top of the library.
Start a mockup inside a folder
Both engines acceptfolder_uuid at creation, so a new template lands where it
belongs without a second call.
Rename or move one folder
Update folder renames a folder, moves it, or both. A field you leave out is left alone, and"parent_uuid": null moves the folder to the top of the library.
cURL
Delete a folder
An empty folder deletes on its own. A folder that holds anything needsrecursive=true; without it the call is refused with FOLDER_NOT_EMPTY and
nothing is touched.
cURL
Response
total_ counts on
Get folder are exactly the
numbers a recursive delete would remove. A delete that is cut off part way can
be repeated and carries on from where it stopped.
Errors
Folders reference
Every field on every folder call.
Pagination
How
limit, offset and total behave.