Files
directus/packages/spec/specs/paths/activity/activity-comments.yaml
2020-09-21 12:33:19 -03:00

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