Danbooru
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)

  • jeanne d'arc alter (still in the middle of the trip) (fate)
  • jeanne d'arc alter (flames of applause) (fate)
  • jeanne d'arc (still in the middle of the trip) (fate)
  • jeanne d'arc (apocrypha epilogue) (fate)
  • jing ke (water shine) (fate)
  • jason (my student council) (fate)
  • jaguarman (formal dress) (fate)
  • jacques de molay (foreigner) (third ascension) (fate)
  • iskandar (power shot) (fate)
  • ishtar (chaldea park caravan) (fate)
  • ishtar (starry nights) (fate)
  • ishtar (scenic beauty) (fate)
  • agnes tachyon (lunatic lab) (umamusume)
  • fujimaru ritsuka (female) (love it)
  • fujimaru ritsuka (male) (love it)
  • tohno akiha
  • distorted halo
  • sukura
  • gold ship (umamusume)
  • a better tomorrow
  • kitsune no mado
  • forspoken
  • tube
  • martha (swimsuit ruler) (fate)
  • martha (swimsuit ruler) (third ascension) (fate)

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
  • 08. External links

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
Base URL/tag_aliases.json
Typeread request
DescriptionThe default order is ID descending.
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
Base URL/tag_aliases/$id.json
Typeread request
Description$id is the forum post ID.

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 / Upgrade / Contact /