Media

Issue a signed upload URL after quota + content-type checks

post/uploads

Request

  • Base URL: https://whatareyoudo.ing/api/v1
  • URL: https://whatareyoudo.ing/api/v1/uploads
  • Auth: HTTP bearer

Request body

fileNamestring required
contentTypestring required
sizeinteger required
groupIdstring uuid nullable

Group to store the file in. Omitted with no diaryId/entryId: the caller's personal group. Alongside diaryId/entryId it is optional and must match the target's group.

diaryIdstring uuid nullable

Upload for this diary (its cover, or an entry not created yet). The group is the diary's; requires diary.update or entry.create, plus media.create, on it. Mutually exclusive with entryId.

entryIdstring uuid nullable

Upload for this entry (its cover or photos). The group is the entry's diary's; requires entry.update and media.create on that diary. Mutually exclusive with diaryId.

Response

Created

Changes

No recorded changes to this operation across all 6 revisions of this API.