mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
patch:
|
|
description: Update the content of an existing comment.
|
|
operationId: updateComment
|
|
parameters:
|
|
- $ref: '../../openapi.yaml#/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: '../../openapi.yaml#/components/schemas/Activity'
|
|
description: Successful request
|
|
'401':
|
|
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
|
|
'404':
|
|
$ref: '../../openapi.yaml#/components/responses/NotFoundError'
|
|
tags:
|
|
- Activity
|
|
delete:
|
|
description: Delete an existing comment. Deleted comments can not be retrieved.
|
|
operationId: deleteComment
|
|
responses:
|
|
'203':
|
|
description: Deleted succsessfully
|
|
'401':
|
|
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
|
|
'404':
|
|
$ref: '../../openapi.yaml#/components/responses/NotFoundError'
|
|
tags:
|
|
- Activity
|
|
parameters:
|
|
- $ref: '../../openapi.yaml#/components/parameters/Id' |