Create a new comment
POST/comment/:submissionId
Create a new comment
Request
Path Parameters
submissionId submissionIdrequired
The submissionId to create a comment for
- application/json
Body
body stringrequired
state commentState (string)
Possible values: [public
, hidden
, flagged
, studioApproved
, studioRejected
]
Responses
- 201
- 401
- 404
- 429
- default
Comment created
- application/json
- Schema
- Example (from schema)
- Example
Schema
createdAt date-time
Time representation of entity creation
body string
state commentState (string)
Possible values: [public
, hidden
, flagged
, studioApproved
, studioRejected
]
owner address (string)
id commentId (string)
Unique identifier for Comment
submissionId submissionId (string)
Unique identifier for Project
{
"createdAt": "2024-01-01T09:00:00.00Z",
"body": "string",
"state": "public",
"owner": "string",
"id": "cCX5ZZHMk",
"submissionId": "S14dqdbbnC"
}
{
"id": "35c4407b-6bca-4178-ac77-6dd7889fv703",
"submissionId": "6c3f1178-3x45-3ec4-bac3-205026484a7e",
"body": "This is a comment",
"state": "public",
"ownerId": "5d4f3111-4x21-4e3c-bac3-452164484b9c",
"createdAt": "2021-07-08T20:15:00.000Z"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Unauthorized access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Too Many Requests
- application/json
- Schema
- longTermLimit
- shortTermLimit
Schema
any
{
"error": "Rate limit exceeded: 100 comments/day"
}
{
"error": "Rate limit exceeded: 20 comments/5min"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...