{"errors": {"body": ["is too short (minimum is 1 character)" ] }}
{"errors": {"body": ["is too long (maximum is 10000 characters)" ] }}
{"errors": {"base": ["User can not yet perform this action. Account is too new." ] }}
{"errors": {"post": ["must exist" ] }}
{"errors": {"base": ["Post has comments locked" ] }}
Edit Comment
PATCHhttps://e621.net/comments/{id}.json
Authorization Required
Moderator+ Required If comment section is locked.
Admin+ Required If the comment is not yours.
Edits performed within 5 minutes of creation will not show the "edited" text.
If the comment is not yours, the edit text will show "updated by NAME". This ignores the normal time window.
Moderator+ Required if comment is marked (shows warn, record, or ban message).
This operation is idempotent.
Path Parameters
Name
Type
Description
id*
Number
The ID of the comment to edit.
Request Body
Name
Type
Description
comment[body]*
String
The body of the comment.
Min: 1 / Max: 10,000
comment[is_sticky]
Boolean
If the comment is sticky (post as moderator).
Moderator+ Required if own comment
Admin+ Required otherwise
comment[is_hidden]
Boolean
If the comment is hidden.
Moderator+ Required if own comment
Admin+ Required otherwise
{"success": false,"reason": "Access Denied"}
{"success": false,"reason": "not found"}
{"errors": {"body": ["has no content" ] }}
{"errors": {"body": ["is too short (minimum is 1 character)" ] }}
{"errors": {"body": ["is too long (maximum is 10000 characters)" ] }}
{"errors": {"base": ["Post has comments locked" ] }}
Delete Comment
DELETEhttps://e621.net/comments/{id}.json
Authorization Required
Admin+ Required
Path Parameters
Name
Type
Description
id*
Number
The ID of the comment to delete.
{"success": false,"reason": "Access Denied"}
{"success": false,"reason": "not found"}
Vote On Comment
POSThttps://e621.net/comments/{id}/votes.json
Authorization Required
Privileged+ Required If account is less than 3 days old.
New votes cannot be cast if the comments section is locked. To remove an existing vote, send a request with the current vote. (e.g. -1 = send -1, they will cancel out). You can also use the DELETE method.
Path Parameters
Name
Type
Description
id*
Number
The ID of the comment to vote on.
Request Body
Name
Type
Description
score*
Number
The vote to cast. One of: -1, 1.
no_unvote
Boolean
If the vote should not be removed if it already exists.
{"score": 1,"our_score": 1// our current vote: -1, 0, 1}
{"success": false,"reason": "Access Denied"}
{"success": false,"reason": "not found"}
{"success": false,"message": "Validation failed: User can not yet perform this action. Account is too new","code": null}
{"success": false,"message": "Validation failed: You cannot vote on your own comments","code": null}
{"success": false,"message": "Validation failed: You cannot vote on sticky comments","code": null}