Post Sets

Search Post Sets

GET https://e621.net/post_sets.json

Query Parameters

NameTypeDescription

search[name]

String

The name of the set.

search[shortname]

String

The shortname of the set.

search[is_public]

Boolean

If the set is public. Moderator+ Required

search[creator_name]

String

The name of the creator of the set.

search[creator_id]

Number

The ID of the creator of the set.

search[order]

String

The order of the returned results. One of: update, updated_at, name, shortname, created_at, postcount, post_count

search[id]

Number

limit

Number

page

String

[
  {
    "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"
  }
]

Get Post Set

GET https://e621.net/post_sets/{id}.json

Moderator+ Required If set is private.

Path Parameters

NameTypeDescription

id*

Number

The ID of the set.

{
  "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"
}

Create Post Set

POST https://e621.net/post_sets.json

Authorization Required

Janitor+ Required If account is less than 3 days old.

Request Body

NameTypeDescription

post_set[name]*

String

The name of the set.

Min: 3 / Max: 100

post_set[shortname]*

String

The shortname of the set. Cannot be only digits.

Min: 3 / Max: 50

post_set[description]

String

The description of the set.

Max: 10,000

post_set[is_public]

Boolean

If the set is public.

post_set[transfer_on_delete]

Boolean

If parents of deleted posts are transferred into the set.

{
  "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"
}

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

NameTypeDescription

id*

Number

The ID of the set to edit.

Request Body

NameTypeDescription

post_set[name]*

String

The name of the set.

Min: 3 / Max: 100

post_set[shortname]*

String

The shortname of the set. Cannot be only digits.

Min: 3 / Max: 50

post_set[description]

String

The description of the set.

Max: 10,000

post_set[is_public]

Boolean

If the set is public.

post_set[transfer_on_delete]

Boolean

If parents of deleted posts are transferred into the set.

Delete Post Set

DELETE https://e621.net/post_sets/{id}.json

Authorization Required

Admin+ Required If the set isn't yours.

Path Parameters

NameTypeDescription

id*

Number

The ID of the set to delete.

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

NameTypeDescription

id*

Number

The ID of the set to add posts to.

Request Body

NameTypeDescription

post_ids[]*

Number

An array of post IDs to add to the set. Limit: 10,000

{
  "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"
}

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

NameTypeDescription

id*

Number

The ID of the set to remove posts from.

Request Body

NameTypeDescription

post_ids[]*

Number

An array of post IDs to remove from the set

{
  "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"
}

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

NameTypeDescription

id*

Number

The ID of the set to remove posts from.

Request Body

NameTypeDescription

post_ids[]*

Number

An array of post IDs to remove from the set

{
  "Owned": [
    "", // name
    0 // id
  ],
  "Maintained": [
    "", // name
    0 // id
  ]
}

Last updated