mirror of
https://github.com/directus/directus.git
synced 2026-02-16 13:14:55 -05:00
46 lines
1.2 KiB
YAML
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
|