mirror of
https://github.com/directus/directus.git
synced 2026-02-16 00:15:35 -05:00
38 lines
931 B
YAML
38 lines
931 B
YAML
post:
|
|
description: Creates a new comment.
|
|
operationId: createComment
|
|
parameters:
|
|
- $ref: "#/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: "#/components/schemas/Activity"
|
|
description: Successful request
|
|
"401":
|
|
$ref: "#/components/responses/UnauthorizedError"
|
|
"404":
|
|
$ref: "#/components/responses/NotFoundError"
|
|
tags:
|
|
- Activity
|