mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
37 lines
1000 B
YAML
37 lines
1000 B
YAML
post:
|
|
description: Creates a new comment.
|
|
operationId: createComment
|
|
parameters:
|
|
- $ref: '../../openapi.yaml#/components/parameters/Meta'
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
required: [ "collection", "item", "comment" ]
|
|
properties:
|
|
collection:
|
|
type: string
|
|
example: projects
|
|
item:
|
|
type: integer
|
|
example: 1
|
|
comment:
|
|
type: string
|
|
example: A new 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 |