POST

Create Folder


Creates a folder.

Important: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.

Endpoint
POST
https://www.wixapis.com/site-folders/v2/folders

Body Params
folderFolder

Folder object to create.

Response Object
folderFolder

Folder data.

CreateFolder
Request
cURL
curl -X POST 'https://www.wixapis.com/site-folders/v2/folders' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Authorization: <AUTH>' \ -H 'wix-account-id: 4339fba7-b533-4d10-a91b-822d825f29a5' \ -d '{ "folder": {"name": "My Folder", "parentId": "root"}}'
Response
JSON
{ "folder": { "id": "283f4660-8f6f-462b-94a1-160a57338032", "name": "My Folder", "createdDate": "2021-12-13T11:33:56.973Z", "updatedDate": "2021-12-13T11:33:56.973Z", "siteCount": 0, "parentId": "" } }
Errors
409Already Exists

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?