AIBooru
Login Posts Comments Notes Artists Tags Pools Wiki Forum More ยป
Search Changes Help | Posts (0) History
  • Help
guro
scat

Recent Changes (all)

  • koko (meme)
  • lee roha
  • izumo kasumi (nijisanji)
  • aku no onna kanbu
  • serena (aku no onna kanbu)
  • aku no onna kanbu: full moon night
  • anthropomorphization
  • murahaya mashio
  • map background
  • world map
  • wplace
  • ceras yanagida lilienfeld (hokkoku hanabi)
  • ceras yanagida lilienfeld (winter casual)
  • ceras yanagida lilienfeld (summer loungewear)
  • training
  • ceras yanagida lilienfeld (summer training wear)
  • ceras yanagida lilienfeld (summer casual)
  • miyake miu
  • nagano prefecture
  • mizukawa school uniform
  • katsuragi izumi
  • edel note
  • ceras yanagida lilienfeld
  • raised inner eyebrows
  • upside-down book

Options

  • Wiki History
  • Discussions
  • What Links Here

api:tag aliases

Table of Contents
  • 1. Record field format
  • 2. Associated attributes
  • 3. Nomenclature
  • 4. Index
  • 5. Show
  • 6. Delete
  • 7. See also

The following includes the details of how to interface with the tag alias records through the API.

Record field format

NameTypeDetails
idinteger>0
antecedent_namestring
consequent_namestring
statusstringincludes [active, deleted, retired]
reasonstringunused
forum_topic_idinteger>0 or null
forum_post_idinteger>0 or null
creator_idinteger>0
approver_idinteger>0 or null
created_attimestamp
updated_attimestamp

Associated attributes

NameTypeNumberAvailabilityDetails
creatorusersinglerequiredUser that created the alias.
approverusersingleoptionalUser that approved the alias.
forum_topicforum topicsingleoptionalForum topic where the aliasas discussed.
forum_postforum postsingleoptionalForum post which started the alias discussion.
antecedent_tagtagsinglerequiredTag of the antecedent.
consequent_tagtagsinglerequiredTag of the consequent.
antecedent_wikiwiki pagesingleoptionalWiki page of the antecedent.
consequent_wikiwiki pagesingleoptionalWiki page of the consequent.

Nomenclature

  • Plural form: "tag_aliases"
    • Used in the URL pathname
  • Singular form: "tag_alias"
    • Used for write parameters (Help:API Write Requests)
  • Versions: none

Index

HTTP MethodGET or POST*
Base URL/tag_aliases.json
Typeread request
DescriptionThe default order is ID descending.
* Accepts POST under certain circumstances. See Help:API read requests.
Search attributes

All of the following are standard attributes with all of their available formats and qualifiers.

  • Number syntax
    • id
    • created_at
    • updated_at
  • Text syntax
    • antecedent_name
    • consequent_name
  • User syntax
    • creator
    • approver
  • Chaining syntax
  • forum_topic
  • forum_post
Special search parameters
  • name_matches - Case-insensitive wildcard search on the antecedent name or consequent name fields.
  • status - Case-insensitive search on the status field.
  • category - Searches on the category of the consequent tag, with support for multiple categories being space-delimited.
Search order

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

  • created_at - Orders by created_at descending.
  • updated_at - Orders by updated_at descending.
  • name - Alphabetical order on the antecedent, then alphabetical order on the consequent.
  • tag_count - Orders by post count of the consequent tag, then alphabetical order on the antecedent, then alphabetical order on the consequent.
  • custom - See here for more info.

Show

HTTP MethodGET or POST*
Base URL/tag_aliases/$id.json
Typeread request
Description$id is the forum post ID.
* Accepts POST under certain circumstances. See Help:API read requests.

Delete

HTTP MethodDELETE
Base URL/tag_aliases/$id.json
Typewrite request
Description$id is the forum post ID.
Restricted to Admin+.

See also

  • Help:Common URL Parameters
  • Help:API

External links

Controllerhttps://github.com/danbooru/danbooru/blob/master/app/controllers/tag_aliases_controller.rb
Modelhttps://github.com/danbooru/danbooru/blob/master/app/models/tag_relationship.rb
https://github.com/danbooru/danbooru/blob/master/app/models/tag_alias.rb
Policyhttps://github.com/danbooru/danbooru/blob/master/app/policies/tag_alias_policy.rb
Terms / Privacy / Contact /