Add a file to a gallery

post/v1/workspaces/{workspace}/galleries/{galleryId}/items

Request

  • Base URL: https://api.uploads.sh
  • URL: https://api.uploads.sh/v1/workspaces/{workspace}/galleries/{galleryId}/items
  • Auth: HTTP bearer

Request body

expectedVersioninteger required
objectKeystring required
captionstring nullable
altTextstring nullable

Response

The file was already a member; the existing item is returned.

idstring required
objectKeystring required
positioninteger required
captionstring nullable required
altTextstring nullable required
createdAtstring date-time required
status'available' | 'missing' | 'withheld' required
urlstring uri nullable required
embedUrlstring uri nullable required
pageUrlstring uri required
contentTypestring nullable required
sizeinteger nullable required
uploadedstring date-time nullable required
modifiedstring date-time nullable required
posterUrlstring uri

Changes

No recorded changes to this operation across all 1 revision of this API.