AniworldAI
Login Posts Comments Notes Artists Tags Pools Wiki Forum More »
Search Changes Help | Posts (0) History
  • Help
guro
scat
furry -rating:g

Recent Changes (all)

  • chihaya senri
  • kirakano
  • hagakure yuzuru
  • kirameki kirara
  • kiraboshi runa
  • nishizono chigusa (2nd costume)
  • nishizono chigusa (3rd costume)
  • nishizono chigusa (4th costume)
  • sarazanmai
  • nishizono chigusa (jirai kei)
  • nishizono chigusa (loungewear)
  • suo sango (4th costume)
  • todo kohaku (3rd costume)
  • todo kohaku (2nd costume)
  • todo kohaku (1st costume)
  • medianoche (zutomayo)
  • fukuhara tamon
  • standing on business pose (meme)
  • netorase
  • omaru polka (waitress)
  • omaru polka (school uniform)
  • brown sky
  • forced partners
  • yonaga akina
  • swinging (relationship)

Options

  • Wiki History
  • Discussions
  • What Links Here

api:pools

Table of Contents
  • 01. Record field format
  • 02. Associated attributes
  • 03. Index
  • 04. Show
  • 05. Create
  • 06. Update
  • 07. Delete
  • 08. Undelete
  • 09. Revert
  • 10. See also
  • 11. External links

This page has details for how to interact with pool records through the API.


Record field format

NameTypeDetails
idinteger>0
namestring
descriptionstring
post_idsarrayintegers > 0
categorystring[series, collection]
is_deletedboolean
is_activebooleanunused
created_attimestamp
updated_attimestamp

Associated attributes

There are no available relations that can be included through the API.


Index

Returns multiple pool records.

HTTP MethodGET
Base URL/pools.json
Typeread request
DescriptionThe default order is updated at descending.
Search attributes

Search parameters take the following format (see Help:Common URL parameters for more info):

search[FIELD]=VALUE

The following are the base fields along with their associated type. Check the syntax pages for all of the available variations.

  • Number syntax
    • id
    • created_at
    • updated_at
  • Text syntax
    • name
    • description
  • Array syntax
    • post_ids
  • Boolean syntax
    • is_deleted
  • Chaining syntax
    • dtext_links
Special search parameters

The following are additional search fields.

  • name_contains - Normalized case-insensitive search with wildcards at the start and end.
  • post_tags_match - The pools's post's tags match the given terms. Meta-tags not supported.
  • linked_to - Pools that have dtext links to the given wiki page.
    • The parameter must use the same format as the wiki title.
    • I.e. all lowercase and underscores instead of spaces.
  • not_linked_to - Pools that don't have dtext links to the given wiki page.
    • Needs the same format as linked_to.
  • category
    • series - Only series-type pools.
    • collection - Only collection-type pools.
Search order

Using the search parameter order with one of the following values changes the order of the results.

  • name - Name descending.
  • created_at - Created at descending.
  • post_count - Post count descending.
  • custom - Help:Common URL parameters
    • In order to use this order, search[id] must also be set with a list of comma-separated IDs.

Show

Returns a single pool record.

HTTP MethodGET
Base URL/pools/$id.json
Typeread request
Description$id is the pool ID.

Create

Creates a single pool record.

HTTP MethodPOST
Base URL/pools.json
Typewrite request
Create parameters

Pool parameters take the following format (see Help:API Write Requests for more info):

pool[FIELD]=VALUE
  • Required:
    • name
    • category - Can be: series, collection.
  • Optional
    • description
    • post_ids - Uses URL array parameter format.
      • Example: pool[post_ids][]=1&pool[post_ids][]=2
    • post_ids_string - Space delimited list of post IDs.

Update

Updates a single pool record.

HTTP MethodPUT/PATCH
Base URL/pools/$id.json
Typewrite request
Description$id is the pool ID.
Update parameters

Accepts the same parameters as the Create action. All parameters are optional. Only Builders and above can update a deleted record.


Delete

Deletes a single pool record.

HTTP MethodDELETE
Base URL/pools/$id.json
Typewrite request
Description$id is the pool ID.

Undelete

Undeletes a single pool record.

HTTP MethodPOST
Base URL/pools/$id/undelete.json
Typewrite request
Description$id is the pool ID.

Revert

Reverts an a pool record to a prior version.

HTTP MethodPUT
Base URL/pools/$id/revert.json
Typewrite request
Description$id is the pool ID.
Revert parameters
  • Required:
    • version_id - The pool version ID to revert to.

Note: The version ID may be passed along as a URL parameter instead of in the body.


See also

  • API:Pool versions
  • Help:Common URL Parameters
  • Help:API

External links

Controllerhttps://github.com/danbooru/danbooru/blob/master/app/controllers/pools_controller.rb
Modelhttps://github.com/danbooru/danbooru/blob/master/app/models/pool.rb
Policyhttps://github.com/danbooru/danbooru/blob/master/app/policies/pool_policy.rb
Terms / Privacy / Upgrade / Автор зеркала /