Files
directus/packages/spec/specs/paths/activity/activity-comments.yaml
2020-10-11 18:31:14 -04:00

38 lines
955 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