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)

  • roco kingdom: world
  • eclipsenoir02
  • a drowning canvas (shining nikki)
  • a pearl's portrait (shining nikki)
  • halfstar (shining nikki)
  • bubble gum fellow (umamusume)
  • eve (stellar blade)
  • black groza (girls' frontline 2)
  • estellise sidos heurassein
  • estellise sidos heurassein (yukata)
  • inoue takina
  • inoue takina (da training wear) (nikke)
  • fire emblem fates
  • nyx (fire emblem)
  • peri (fire emblem)
  • elise (sparkling smile) (fire emblem)
  • elise (resplendent) (fire emblem)
  • elise (hostile springs) (fire emblem)
  • elise (tropical flower) (fire emblem)
  • elise (flower girl) (fire emblem)
  • elise (fire emblem)
  • greenery day
  • motion blur
  • nishikigi chisato
  • blurry

Options

  • Wiki History
  • Discussions
  • What Links Here

api:post flags

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

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

Record field format

NameTypeDetails
idinteger>0
post_idinteger>0
reasonstring
statusenumSee Status table for list of acceptable values.
is_resolvedboolean
creator_idinteger>0, limited to Moderator+ or the flag creator
created_attimestamp
updated_attimestamp
Status
ValueEnum
0pending
1succeeded
2rejected

Associated attributes

NameTypeNumberAvailabilityDetails
postpostsinglerequiredPost that the flag belongs to.

Nomenclature

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

Index

HTTP MethodGET
Base URL/post_flags.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
    • post_id
    • created_at
    • updated_at
  • Text syntax
    • reason
  • Boolean syntax
    • is_resolved
  • Enum syntax
    • status
  • Post syntax
    • status
Special search parameters
  • reason_matches - Case-insensitive wildcard search on the reason field.
  • creator_id - Searches for flags by creator ID. Single ID only.
  • creator_name - Searches for flags by creator name. Single name only.
  • category_matches - Can be: normal, unapproved, rejected, deleted.
Search order

The search order can only be changed with the custom parameter.

Show

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

Create

HTTP MethodPOST
Base URL/post_flags.json
Typewrite request
Create parameters
  • Required:
    • post_id
    • reason

See also

  • Help:Common URL Parameters
  • Help:API

External links

Controllerhttps://github.com/danbooru/danbooru/blob/master/app/controllers/post_flags_controller.rb
Modelhttps://github.com/danbooru/danbooru/blob/master/app/models/post_flag.rb
Policyhttps://github.com/danbooru/danbooru/blob/master/app/policies/post_flag_policy.rb
Terms / Privacy / Upgrade / Contact /