Create a takeaway comment
POST/takeaways/:takeawayId/comments
Create a new comment for a takeaway.
Request
Path Parameters
- application/json
Body
required
Account ids mentioned in the comment
Unique Id of the parent comment
Comment text
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 423
- 429
- 500
Created
- */*
- Schema
- Example (from schema)
Schema
Account Id of the comment author
Date when the comment was created
Date when the comment was modified
Unique Id of the takeaway comment
Account ids mentioned in the comment
Unique Id of the parent comment
Comment status
Possible values: [ACTIVE, ARCHIVED]
Unique Id of the takeaway
Comment text
{
"authorId": 0,
"dateCreated": "2024-07-29T15:51:28.071Z",
"dateModified": "2024-07-29T15:51:28.071Z",
"id": 0,
"mentionedAccountIds": [
0
],
"parentId": 0,
"status": "ACTIVE",
"takeawayId": 0,
"text": "string"
}
Bad Request
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Unauthorized
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Forbidden
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Not Found
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Unprocessable Entity
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Locked
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Too Many Requests
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Internal Server Error
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}