Get/create folder by path

Creates a folder hierarchy or retrieves the existing folder identifier for a folder that already exists, based on the forward-slash-delimited path provided in the folderpath query parameter.

If any segment of the path does not yet exist, the service creates it automatically. If the full path already exists, the service returns the existing folder without modification. The response includes the id of the deepest (leaf) folder and a path array describing each segment from root to leaf, so callers can verify the complete hierarchy.

Glossary: teamsiteId — Identifier of the teamsite that scopes the folder hierarchy. folderpath — Forward-slash-delimited path string representing the desired folder hierarchy (for example /Marketing/Q4 Campaign/Assets).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Identifier of the teamsite context for the request. Depending on API behavior, it may be a GUID-formatted value or a documented special value such as 1.

Query Params
string
required
length between 2 and 2000

Forward-slash-delimited folder path to create or resolve. Each segment between slashes becomes a folder name. A leading slash is required. Missing intermediate folders are created on the fly; if the entire path already exists, the existing leaf folder identifier is returned without modification. Each segment may be up to 255 characters.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json