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)

  • 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)
  • martha (swimsuit ruler) (second ascension) (fate)
  • martha (swimsuit ruler) (first ascension) (fate)
  • scathach (swimsuit assassin) (fate)
  • exs-tia riesz
  • exs-tia yuri
  • exs-tia marina
  • star symbol swim ring

Options

  • Wiki History
  • Discussions
  • What Links Here

api:forum posts

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

The following includes the details of how to interface with the forum post records through the API.

Record field format

NameTypeDetails
idinteger>0
topic_idinteger>0
bodystring
is_deletedboolean
creator_idinteger>0
updater_idinteger>0
created_attimestamp
updated_attimestamp

Associated attributes

NameTypeNumberAvailabilityDetails
creatorusersinglerequiredUser that created the forum post.
updaterusersinglerequiredUser that last updated the forum post.
topicforum topicsinglerequiredForum topic the forum post is on.
dtext_linksdtext linkmultipleoptionalDtext links on the forum post.
votesforum post votemultipleoptionalAny votes the forum post may have.
tag aliastag aliasmultipleoptionalTag aliases linked to the forum post.
tag implicationtag implicationmultipleoptionalTag implications linked to the forum post.
bulk update requestbulk update requestmultipleoptionalBulk update requests linked to the forum post.

Nomenclature

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

Index

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

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

  • Number syntax
    • id
    • topic_id
    • created_at
    • updated_at
  • Text syntax
    • body
  • User syntax
    • creator
    • updater
  • Boolean syntax
    • is_deleted
  • Chaining syntax
    • topic
    • dtext_links
    • votes
    • tag alias
    • tag implication
    • bulk update request
Special search parameters
  • body_matches - Case-insensitive wildcard searching on the body text field.
  • topic_title_matches - Case-insensitive wildcard searching on the topic title the forum post is on.
  • topic_category_id - Can be: 0, 1, 2 (General, Tags, Bugs & Features respectively).
  • linked_to - Shows forum posts that link to a particular wiki.
    • The parameter must use the same format as the wiki title
    • I.e. all lowercase and underscores instead of spaces
Search order

The search order is not configurable with a search parameter. However, the order can still be changed to ID descending by using sequential pagination.

Show

HTTP MethodGET
Base URL/forum_posts/$id.json
Typeread request
Description$id is the forum post ID.

Create

HTTP MethodPOST
Base URL/forum_posts.json
Typewrite request
Create parameters
  • Required:
    • body
    • topic_id

Update

HTTP MethodPUT/PATCH
Base URL/forum_posts/$id.json
Typewrite request
Description$id is the forum post ID.
Update parameters
  • Optional:
    • body

Delete

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

Undelete

HTTP MethodPOST
Base URL/forum_posts/$id/undelete.json
Typewrite request
Description$id is the forum post ID.
Restricted to Moderator+.

See also

  • Help:Common URL Parameters
  • Help:API

External links

Controllerhttps://github.com/danbooru/danbooru/blob/master/app/controllers/forum_posts_controller.rb
Modelhttps://github.com/danbooru/danbooru/blob/master/app/models/forum_post.rb
Policyhttps://github.com/danbooru/danbooru/blob/master/app/policies/forum_post_policy.rb
Terms / Privacy / Upgrade / Contact /