Search Post Sets
GET
https://e621.net/post_sets.json
Query Parameters
Name Type Description The shortname of the set.
If the set is public. Moderator+ Required
The name of the creator of the set.
The ID of the creator of the set.
The order of the returned results. One of: update
, updated_at
, name
, shortname
, created_at
, postcount
, post_count
200: OK Success (Results) 200: OK Success (No Results) !!
Copy [
{
"created_at" : "0000-00-00T00:00:00.000-00:00" ,
"creator_id" : 0 ,
"description" : "" ,
"id" : 0 ,
"is_public" : false ,
"name" : "" ,
"post_count" : 0 ,
"post_ids" : [
0
] ,
"shortname" : "" ,
"transfer_on_delete" : false ,
"updated_at" : "0000-00-00T00:00:00.000-00:00"
}
]
Copy // See https://github.com/e621ng/e621ng/issues/359
{
"post_sets" : []
}
Get Post Set
GET
https://e621.net/post_sets/{id}.json
Moderator+ Required If set is private.
Path Parameters
200: OK Success 403: Forbidden Access Denied (Private) 404: Not Found Not Found
Copy {
"created_at" : "0000-00-00T00:00:00.000-00:00" ,
"creator_id" : 0 ,
"description" : "" ,
"id" : 0 ,
"is_public" : false ,
"name" : "" ,
"post_count" : 0 ,
"post_ids" : [
0
] ,
"shortname" : "" ,
"transfer_on_delete" : false ,
"updated_at" : "0000-00-00T00:00:00.000-00:00"
}
Copy {
"success" : false ,
"reason" : "Access Denied"
}
Copy {
"success" : false ,
"reason" : "not found"
}
Create Post Set
POST
https://e621.net/post_sets.json
Authorization Required
Janitor+ Required If account is less than 3 days old.
Request Body
Name Type Description The name of the set.
Min: 3 / Max: 100
The shortname of the set. Cannot be only digits.
Min: 3 / Max: 50
The description of the set.
Max: 10,000
post_set[transfer_on_delete]
If parents of deleted posts are transferred into the set.
201: Created Success 403: Forbidden Access Denied 422: Unprocessable Entity Account Too New 422: Unprocessable Entity Name Taken 422: Unprocessable Entity Short Name Taken 422: Unprocessable Entity Name Too Short/Long 422: Unprocessable Entity Short Name Too Short/Long 422: Unprocessable Entity Short Name Only Digits 422: Unprocessable Entity Description Too Long 422: Unprocessable Entity Hourly Limit Reached 422: Unprocessable Entity Set Limit Reached
Copy {
"created_at" : "0000-00-00T00:00:00.000-00:00" ,
"creator_id" : 0 ,
"description" : "" ,
"id" : 0 ,
"is_public" : false ,
"name" : "" ,
"post_count" : 0 ,
"post_ids" : [
0
] ,
"shortname" : "" ,
"transfer_on_delete" : false ,
"updated_at" : "0000-00-00T00:00:00.000-00:00"
}
Copy {
"success" : false ,
"reason" : "Access Denied"
}
Copy {
"errors" : {
"base" : [
"Can't make a set public until your account is at least three days old"
]
}
}
Copy {
"errors" : {
"name" : [
"is already taken"
]
}
}
Copy {
"errors" : {
"shortname" : [
"is already taken"
]
}
}
Copy {
"errors" : {
"name" : [
"must be between three and one hundred characters long"
]
}
}
Copy {
"errors" : {
"shortname" : [
"must be between three and fifty characters long"
]
}
}
Copy {
"errors" : {
"shortname" : [
"must contain at least one lowercase letter or underscore"
]
}
}
Copy {
"errors" : {
"description" : [
"is too long (maximum is 10000 characters)"
]
}
}
Copy {
"errors" : {
"base" : [
"You have already created 6 sets in the last hour."
]
}
}
Copy {
"errors" : {
"base" : [
"You can only create 75 sets."
]
}
}
Edit Post Set
PATCH
https://e621.net/comments/{id}.json
Authorization Required
Janitor+ Required If account is less than 3 days old.
Admin+ Required If the set is not yours.
Path Parameters
Name Type Description The ID of the set to edit.
Request Body
Name Type Description The name of the set.
Min: 3 / Max: 100
The shortname of the set. Cannot be only digits.
Min: 3 / Max: 50
The description of the set.
Max: 10,000
post_set[transfer_on_delete]
If parents of deleted posts are transferred into the set.
204: No Content Success 403: Forbidden Access Denied 404: Not Found Not Found 422: Unprocessable Entity Account Too New 422: Unprocessable Entity Name Taken 422: Unprocessable Entity Short Name Taken 422: Unprocessable Entity Name Too Short/Long 422: Unprocessable Entity Short Name Too Short/Long 422: Unprocessable Entity Short Name Only Digits 422: Unprocessable Entity Description Too Long
Copy {
"success" : false ,
"reason" : "Access Denied"
}
Copy {
"success" : false ,
"reason" : "not found"
}
Copy {
"errors" : {
"base" : [
"Can't make a set public until your account is at least three days old"
]
}
}
Copy {
"errors" : {
"name" : [
"is already taken"
]
}
}
Copy {
"errors" : {
"shortname" : [
"is already taken"
]
}
}
Copy {
"errors" : {
"name" : [
"must be between three and one hundred characters long"
]
}
}
Copy {
"errors" : {
"shortname" : [
"must be between three and fifty characters long"
]
}
}
Copy {
"errors" : {
"shortname" : [
"must contain at least one lowercase letter or underscore"
]
}
}
Copy {
"errors" : {
"description" : [
"is too long (maximum is 10000 characters)"
]
}
}
Delete Post Set
DELETE
https://e621.net/post_sets/{id}.json
Authorization Required
Admin+ Required If the set isn't yours.
Path Parameters
Name Type Description The ID of the set to delete.
204: No Content Success 403: Forbidden Access Denied 404: Not Found Not Found
Copy {
"success" : false ,
"reason" : "Access Denied"
}
Copy {
"success" : false ,
"reason" : "not found"
}
Add Posts To Post Set
POST
https://e621.net/post_sets/{id}/add_posts.json
Authorization Required
Admin+ Required If the post set isn't owned or maintained by you.
While the limit is 10,000 posts, attempting to add that many posts at once will most likely result in a timeout with status code 524. A request that would take the set over the 10,000 post limit will fail and none of the posts will be added. Invalid IDs are silently ignored. This operation is idempotent.
Path Parameters
Name Type Description The ID of the set to add posts to.
Request Body
Name Type Description An array of post IDs to add to the set. Limit: 10,000
201: Created Success 403: Forbidden Access Denied 404: Not Found Not Found 422: Unprocessable Entity Post Set Too Large 500: Internal Server Error post_ids[] missing
Copy {
"created_at" : "0000-00-00T00:00:00.000-00:00" ,
"creator_id" : 0 ,
"description" : "" ,
"id" : 0 ,
"is_public" : false ,
"name" : "" ,
"post_count" : 0 ,
"post_ids" : [
0
] ,
"shortname" : "" ,
"transfer_on_delete" : false ,
"updated_at" : "0000-00-00T00:00:00.000-00:00"
}
Copy {
"success" : false ,
"reason" : "Access Denied"
}
Copy {
"success" : false ,
"reason" : "not found"
}
Copy {
"errors" : {
"base" : [
"Sets can have up to 10,000 posts each"
]
}
}
Copy {
"success" : false ,
"message" : "An unexpected error occurred." ,
"code" : "00000000-0000-0000-0000-000000000000"
}
Remove Posts From Post Set
POST
https://e621.net/post_sets/{id}/remove_posts.json
Authorization Required
Admin+ Required If the post set isn't owned or maintained by you.
Invalid IDs are silently ignored. This operation is idempotent.
Path Parameters
Name Type Description The ID of the set to remove posts from.
Request Body
Name Type Description An array of post IDs to remove from the set
201: Created Success 403: Forbidden Access Denied 404: Not Found Not Found 500: Internal Server Error post_ids[] missing
Copy {
"created_at" : "0000-00-00T00:00:00.000-00:00" ,
"creator_id" : 0 ,
"description" : "" ,
"id" : 0 ,
"is_public" : false ,
"name" : "" ,
"post_count" : 0 ,
"post_ids" : [
0
] ,
"shortname" : "" ,
"transfer_on_delete" : false ,
"updated_at" : "0000-00-00T00:00:00.000-00:00"
}
Copy {
"success" : false ,
"reason" : "Access Denied"
}
Copy {
"success" : false ,
"reason" : "not found"
}
Copy {
"success" : false ,
"message" : "An unexpected error occurred." ,
"code" : "00000000-0000-0000-0000-000000000000"
}
Post Sets For Select
GET
https://e621.net/post_sets/for_select.json
Authorization Required
undefined
Invalid IDs are silently ignored. This operation is idempotent.
Path Parameters
Name Type Description The ID of the set to remove posts from.
Request Body
Name Type Description An array of post IDs to remove from the set
201: Created Success 403: Forbidden Access Denied
Copy {
"Owned" : [
"" , // name
0 // id
] ,
"Maintained" : [
"" , // name
0 // id
]
}
Copy {
"success" : false ,
"reason" : "Access Denied"
}
Last updated 4 months ago