Files

Creates a new file

Creates a new file

post/api/v1/files

Request

  • Base URL: https://uniform.app
  • URL: https://uniform.app/api/v1/files
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Request body

idstring uuid
projectIdstring uuid
sourceIdstring
teamIdstring uuid
namestring required
sizenumber required
mediaTypestring required
widthnumber
heightnumber
expiresAtstring date-time

Optional expiry time for temporary uploads. If set, and the file is not attached to an asset at that time, it will be automatically deleted.

Response

Upload URL issued

idstring uuid required
uploadUrlstring required
method'POST' | 'PUT' required

Changes

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