post_replacements

Get the replacements for a post

Changed on

Returns the post replacements belonging to a single post.

get/posts/{post_id}/replacements.json

Request

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

Path parameters

post_idinteger required

The ID of the post whose replacements to list

Query parameters

pageinteger

The page number to retrieve

limitinteger

The number of replacements to retrieve per page

search[md5]string

Filter replacements by the MD5 hash of the file

search[creator_name]string

Filter replacements by the creator's username

search[approver_name]string

Filter replacements by the approver's username

search[uploader_name_on_approve]string

Filter replacements by the uploader's username at approval time

search[status]'original' | 'pending' | 'rejected' | 'approved' | 'promoted'

Filter replacements by status

search[created_at]string

Filter replacements by creation date

search[updated_at]string

Filter replacements by last update date

search[id]string

Filter replacements by replacement ID

Response

A list of the post's replacements

idinteger required

The unique ID of the post replacement

created_atstring date-time required

The timestamp when the replacement was created

updated_atstring date-time required

The timestamp when the replacement was last updated

post_idinteger required

The ID of the post associated with the replacement

creator_idinteger required

The ID of the user who created the replacement

approver_idinteger nullable

The ID of the user who approved the replacement, if applicable

file_extstring required

The file extension of the replacement (e.g., jpg, png, webm)

file_sizeinteger required

The size of the replacement file in bytes

image_heightinteger required

The height of the replacement image in pixels

image_widthinteger required

The width of the replacement image in pixels

md5string required

The MD5 hash of the replacement file

sourcestring required

The source URLs for the replacement, separated by newlines

file_namestring required

The name of the replacement file

status'original' | 'pending' | 'rejected' | 'approved' | 'promoted' required

The current status of the replacement

reasonstring required

The reason for the replacement request

sequence_numberinteger nullable

The position of this replacement in the post's replacement history

Changes