POST
/
media
/
uploads
curl --request POST \
  --url https://api.pxyz.dev/api/v0/media/uploads \
  --header 'Content-Type: application/json' \
  --data '{
  "tenantId": "<string>",
  "path": "<string>",
  "access": "public",
  "originalFilename": "<string>",
  "mime": "<string>",
  "size": 1,
  "meta": "<any>"
}'
{
  "id": "<string>",
  "tenantId": "<string>",
  "path": "<string>",
  "originalFilename": "<string>",
  "mime": "<string>",
  "size": 1,
  "meta": "<any>",
  "finishedAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "deletedAt": "2023-11-07T05:31:56Z",
  "uploadUrl": "<string>",
  "fields": "<any>"
}

Body

application/json
tenantId
string
required
path
string
access
enum<string>
required
Available options:
public,
private
originalFilename
string | null
required
mime
string
required
size
integer
required
meta
any

Response

200 - application/json
id
string
required
tenantId
string
required
path
string | null
originalFilename
string | null
required
mime
string | null
required
size
integer | null
required
meta
any
finishedAt
string | null
createdAt
string
required
updatedAt
string
required
deletedAt
string | null
required
uploadUrl
string
required
fields
any