Skip to main content
POST
Presign a PUT to overwrite an existing file's bytes in place

Authorizations

Authorization
string
header
required

An API key minted from the dashboard (POST /api/api-keys), of either class: api (prefix pxg_) or wordpress (prefix pxg_wp_). Which class a given route accepts is documented per-endpoint below; presenting a real key of a class the route doesn't accept is 403 WRONG_KEY_CLASS, never folded into 401 INVALID_API_KEY. No cookie fallback exists.

Path Parameters

fileId
string
required

Body

application/json
size
integer
required
Required range: 1 <= x <= 104857600
type
enum<string>
required
Available options:
image/jpeg,
image/png,
image/webp,
image/avif,
image/gif,
image/svg+xml

Response

OK

fileId
string
required
path
string
required
uploadUrl
string<uri>
required