Files
NodeBB/public/openapi/write/files/folder.yaml
gasoved 3df79683f5 feat: create folders in ACP uploads #9638 (#9750)
* feat: create folders in ACP uploads #9638

* fix: openapi

* test: missing tests

* fix: eslint

* fix: tests
2021-08-31 09:27:00 -04:00

36 lines
982 B
YAML

put:
tags:
- files
summary: create a new folder
description: This operation creates a new folder inside upload path
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
path:
type: string
description: Path to the file (relative to the configured `upload_path`)
example: /files
folderName:
type: string
description: New folder name
example: myfiles
required:
- path
- folderName
responses:
'200':
description: Folder created
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../components/schemas/Status.yaml#/Status
response:
type: object
properties: {}