PATCH

Update Folder


Updates 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
PATCH
https://www.wixapis.com/site-folders/v2/folders/{folder.id}

Path Params
folder.idstringRequired

Folder ID.

Body Params
folderFolder

Folder data.


fieldMaskFieldMask

Set of fields to update. Example: "fieldMask": "name".

Response Object
folderFolder

Folder data.

UpdateFolder
Request
cURL
curl -X PATCH 'https://www.wixapis.com/site-folders/v2/folders/59c80b6f-9cae-49c5-ab0e-83b9a479c573' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Authorization: <AUTH>' \ -H 'wix-account-id: <Account ID>' -d '{"folder":{"id":"59c80b6f-9cae-49c5-ab0e-83b9a479c573","name":"My Folder 2"}, "fieldMask": "name"}'
Response
JSON
{ "folder": { "id": "59c80b6f-9cae-49c5-ab0e-83b9a479c573", "name": "My Folder 2", "siteCount": 0, "parentId": "" } }
Errors
400Invalid Argument

There is 1 error with this status code.

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?