Files
directus/packages/spec/specs/paths/files/file.yaml
2020-09-21 12:33:19 -03:00

52 lines
1.1 KiB
YAML

get:
description: Retrieve a single file by unique identifier.
tags:
- Files
operationId: getFile
responses:
"200":
description: Successful request
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/File"
"401":
$ref: "#/components/responses/UnauthorizedError"
patch:
description: Update an existing file.
tags:
- Files
operationId: updateFile
requestBody:
content:
application/json:
schema:
type: object
responses:
"200":
description: Successful request
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/File"
"401":
$ref: "#/components/responses/UnauthorizedError"
delete:
description: Delete an existing file.
tags:
- Files
operationId: deleteFile
responses:
"200":
description: Successful request
"401":
$ref: "#/components/responses/UnauthorizedError"
parameters:
- $ref: "#/components/parameters/Id"