Create Opportunity Folder

Create a new doc folder in an opportunity. Notes: - `name` is required. - `parentId` and `phaseInstanceId` are mutually exclusive — a folder sits either at the root of a phase, or nested under another folder, not both. - Folders nest at most 2 levels deep. - Update and delete a folder via `PATCH`/`DELETE /folders/{folder_id}`, same as project folders.

Authentication

x-api-keystring
API Key authentication via header

Path parameters

opportunity_idintegerRequired
Opportunity identifier

Request

This endpoint expects an object.
namestringRequired
Folder name
parentIdintegerOptional
Optional. Parent folder id to nest this folder under.
phaseInstanceIdintegerOptional
Optional. Phase instance id this folder should sit at the root of.

Response

Folder created successfully
idinteger
Folder identifier
namestring
Folder name
isActiveboolean

Whether the folder is active (false if archived)

createdAtstringformat: "date-time"
Creation timestamp
updatedAtstringformat: "date-time"
Last update timestamp
companyIdintegerOptional
Owning company identifier
parentIdinteger or nullOptional

Parent folder id, if this folder is nested under another folder. Mutually exclusive with phaseInstanceId. Folders nest at most 2 levels deep.

phaseInstanceIdinteger or nullOptional

Phase instance id, if this folder sits at the root of a phase. Mutually exclusive with parentId.

createdByinteger or nullOptional
User who created the folder

Errors

400
Bad Request Error
404
Not Found Error
500
Internal Server Error