v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Files

Create folder in a site installation.

For a given site, create a new folder in a site installation.

post/v1/sites/{id}/files/folder

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888

Request body

namestring required

Name of the new folder

pathstring required

Path of the new folder

Example request

{
  "name": "awesome_blog_posts",
  "path": "/blogs"
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": [],
  "result": {
    "success": true,
    "path": "wp-content/plugins"
  }
}