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

    Blacklisted (help)

    • guro
    • scat
    • furry -rating:g
    Disable all Re-enable all

    Recent Changes (all)

    • kirigaya toko
    • amo aster
    • ranpha (summer) (princess connect!)
    • ranpha (princess connect!)
    • vsk-94 (girls' frontline)
    • lyrael (princess connect!)
    • lyrael (real) (princess connect!)
    • kururu (princess connect!)
    • kururu (real) (princess connect!)
    • deltarune
    • sensei haruki suetsugu (style)
    • mifuyu (princess connect!)
    • mifuyu (mechanic) (princess connect!)
    • isuzu kai ni (kancolle)
    • mifuyu (summer) (princess connect!)
    • stigmata
    • spirits of haruka
    • yukimura eri
    • kanon (princess connect!)
    • ranpha (real) (princess connect!)
    • stoutland
    • project ultraman
    • lillipup
    • nea (princess connect!)
    • herdier

    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 /