Create a folder

View as Markdown

Creates a folder in the project, optionally under a parent. Requires file:write on the project.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

projectIdstringRequired

Request

This endpoint expects an object.
namestringRequired1-200 characters
parentIdstring or nullOptional>=1 character

Response

The created folder.
folderobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error