post_flags

Get a blank post flag

Changed on

Returns an unsaved post flag pre-filled from the supplied fields.

get/post_flags/new.json

Request

  • Base URL: https://e621.net
  • URL: https://e621.net/post_flags/new.json
  • Auth: one of:
    • none
    • HTTP basic
    • API key in query parameter login and API key in query parameter api_key

Query parameters

post_flag[post_id]integer required

The ID of the post the flag would apply to

post_flag[reason_name]string

The name of the flag reason

post_flag[parent_id]integer

The parent post ID, for inferior duplicates

post_flag[note]string

Additional explanation for the flag

Response

A blank post flag

idinteger required

The unique ID of the post flag

created_atstring date-time required

The timestamp when the post flag was created

post_idinteger required

The ID of the post that the flag is related to

reasonstring required

The reason for the flag or deletion request

creator_idinteger

The ID of the user who created the flag or deletion request

is_resolvedboolean required

Whether the flag has been resolved

updated_atstring date-time required

The timestamp when the post flag was last updated

is_deletionboolean required

Whether the flag is a deletion request

type'flag' | 'deletion' required

The type of the flag (e.g., flag or deletion)

reason_namestring nullable

The configured flag reason this flag was raised under

needs_parent_idboolean required

Whether the flag requires a parent post ID before it can be resolved

needs_staff_reasonboolean required

Whether the flag requires a staff-supplied reason

notestring nullable

Additional explanation regarding the flag

Changes