post_flags

Create a post flag

Changed on

Creates a new flag or deletion request for a post.

post/post_flags.json

Request

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

Request body

Response

Post flag created

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

    • ▲

      the response property became optional for the status

    • ○

      added the optional property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      endpoint added