staff

Upload a staff file

Changed on

Uploads a new staff file. Requires staff-level access.

post/staff/files.json

Request

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

Response

The created staff file

idinteger required

The unique ID of the staff file

creator_idinteger required

The ID of the user who uploaded the file

storage_idstring required

The random identifier the file is stored under

md5string required

The MD5 hash of the file contents

file_extstring required

The file extension, lowercased, with jpeg normalized to jpg

file_sizeinteger required

The size of the file in bytes

original_filenamestring required

The filename the file was uploaded under

titlestring nullable

The display title, defaulting to the original filename

descriptionstring nullable

A free-text description of the file

created_atstring date-time required

When the file was uploaded

updated_atstring date-time required

When the file record was last updated

Changes