Docs Home Return to Homepage
Get Started Login

Add Folder

Last updated Changelog

On this page
http
POST /crates/{handle}/folders

Adds an empty folder. Only the master login can use it until sub-users are given access, with Set Folder Access or a sub-user’s folders. 422 when the name is taken or isn’t valid.

Parameters

Field Type Required Default Description
name string Yes Lowercase letters, digits and hyphens, up to 32 characters
size_gb integer No none Cap on the folder’s size in GB, up to the crate’s size

Response (201)

json
{ "name": "shared", "message": "Folder added. Only the master login can use it until sub-users are given access." }

Errors

Besides the errors any endpoint can return:

Status Code When
400 operation_rejected The server behind the API (mail, database, storage) or the registrar refused the operation. error says why.
403 scope_denied This API key does not have Crates write access for this crate.
403 service_inactive This crate is not active.
404 not_found Crate not found.
502 upstream_unavailable This crate has no storage node.

Snagged on something?

Our sysadmins answer tickets around the clock.