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)

  • kafka (jepella rebellion) (honkai: star rail)
  • kafka (honkai: star rail)
  • kafka (impression) (honkai: star rail)
  • hand in bra
  • tentacles
  • hand in panties
  • handgun stock
  • convenient tentacle
  • tentacle mouth
  • type 54 black star
  • curtsey
  • help:upload rules
  • mouth with tentacles
  • howa type 64
  • shiratori kotoha
  • matatabi neneko
  • tentacle censor
  • chartreuse yamada
  • kokoi tuno
  • lucila pharette
  • tentacle dildo
  • m79
  • hakanai neko
  • akane canna (2nd costume)
  • akane canna

Options

  • Wiki History
  • Discussions
  • What Links Here

api:forum posts

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

This page has details for how to interact with 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

The following is the list of relations that can be included in the API results (see Help:Common URL parameters for more info):

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.

Index

Returns multiple forum post records.

HTTP MethodGET
Base URL/forum_posts.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
    • 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

The following are additional search fields.

  • 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

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

  • 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 forum post record.

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

Create

Creates a single forum post record.

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

Update

Updates a single forum post record.

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

Delete

Deletes a single forum post record.

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

Undelete

Undeletes a single forum post record.

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 / Автор зеркала /