post_replacements

Get a blank replacement for a post

Changed on

Returns an unsaved post replacement attached to the post named in the path. Requires membership of the replacements beta.

get/posts/{post_id}/replacements/new.json

Request

  • Base URL: https://e621.net
  • URL: https://e621.net/posts/{post_id}/replacements/new.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 the replacement would apply to

Response

A blank post replacement

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