ScrollX Tag Page

Api:Post Appeals

0 sourcesWiki updated 1/22/2025
Browse all Api:Post Appeals images →

About Api:Post Appeals

Table of Contents

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

Record field format

NameTypeDetails
[code]id[/code]integer>0
[code]post_id[/code]integer>0
[code]reason[/code]string
[code]status[/code]enumSee Status table for list of acceptable values.
[code]creator_id[/code]integer>0
[code]created_at[/code]timestamp
[code]updated_at[/code]timestamp

Status

ValueEnum
0pending
1succeeded
2rejected

Associated attributes

NameTypeNumberAvailabilityDetails
[code]creator[/code]usersinglerequiredUser that created the forum topic.
[code]post[/code]postsinglerequiredPost that the appeal belongs to.

Nomenclature

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

Index

HTTP MethodGET
Base URL[code]/post_appeals.json[/code]
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.

Special search parameters

  • [code]reason_matches[/code] - Case-insensitive wildcard search on the reason field.

Search order

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

Show

HTTP MethodGET
Base URL[code]/post_appeals/$id.json[/code]
Typeread request
Description[code]$id[/code] is the post appeal ID.

Create

HTTP MethodPOST
Base URL[code]/post_appeals.json[/code]
Typewrite request

Create parameters

  • Required:
  • [code]post_id[/code]
  • [code]reason[/code]

See also

Controller<https://github.com/danbooru/danbooru/blob/master/app/controllers/post_appeals_controller.rb>
Model<https://github.com/danbooru/danbooru/blob/master/app/models/post_appeal.rb>
Policy<https://github.com/danbooru/danbooru/blob/master/app/policies/post_appeal_policy.rb>

Api:Post Appeals Gallery

0 visible posts on page 1