Files
directus/packages/spec/specs/paths/activity/activity-comment.yaml
2020-10-11 18:31:14 -04:00

46 lines
1.2 KiB
YAML

patch:
description: Update the content of an existing comment.
operationId: updateComment
parameters:
- $ref: "../../#/components/parameters/Id"
- $ref: "../../#/components/parameters/Meta"
requestBody:
content:
application/json:
schema:
type: object
properties:
comment:
type: string
example: My updated comment
responses:
"200":
content:
application/json:
schema:
type: object
properties:
data:
$ref: "../../#/components/schemas/Activity"
description: Successful request
"401":
$ref: "../../#/components/responses/UnauthorizedError"
"404":
$ref: "../../#/components/responses/NotFoundError"
tags:
- Activity
delete:
description: Delete an existing comment. Deleted comments can not be retrieved.
operationId: deleteComment
parameters:
- $ref: "../../#/components/parameters/Id"
responses:
"203":
description: Deleted succsessfully
"401":
$ref: "../../#/components/responses/UnauthorizedError"
"404":
$ref: "../../#/components/responses/NotFoundError"
tags:
- Activity