createFolders
POST/folders
Creates up to 40 folders side by side, only inside a folder allowed for the assistant (ai_writable in GET /folders), never at the top of Files. Each new folder is private to the represented user and is itself allowed for the assistant, through its parent. The hourly limit of 40 new folders per person in a workspace is shared with the Broome assistant; when it is reached partway, the remaining names come back as not_created with reason rate_limited. Idempotent by name, so it takes no Idempotency-Key: a name the parent already holds (ignoring case) answers that folder as exists and spends no allowance, and a retry never duplicates a folder. A parent that does not exist, that the caller cannot open, or that is not allowed for the assistant answers 404. Answers 201 when at least one folder was created, 200 when every name already existed.
Request
Responses
- 200
- 201
- 400
- 401
- 403
- 404
- 422
- 429
Every name already existed in the parent.
Response Headers
Responses must use Cache-Control: no-store.
At least one folder was created.
Response Headers
Responses must use Cache-Control: no-store.
Error envelope.
Response Headers
Responses must use Cache-Control: no-store.
Error envelope.
Response Headers
Responses must use Cache-Control: no-store.
Error envelope.
Response Headers
Responses must use Cache-Control: no-store.
Error envelope.
Response Headers
Responses must use Cache-Control: no-store.
Error envelope.
Response Headers
Responses must use Cache-Control: no-store.
Error envelope.
Response Headers
Responses must use Cache-Control: no-store.