Skip to main content
PATCH
Update a file

Authorizations

Authorization
string
header
required

A secret key from Print.App admin → Domains → Secret keys, sent as Authorization: Bearer sk_…. Server-side only.

Path Parameters

id
string
required

The file id.

Body

application/json

The fields to change.

title
string

The file's name.

Required string length: 1 - 200
tags
string[]

Labels for finding it again.

Maximum array length: 50
Required string length: 1 - 50

Response

OK.

An image or graphic in your account.

object
string
required
Allowed value: "file"
id
string
required

Use it as asset in design operations.

title
string | null
required
contentType
string | null
required
size
number | null
required

Bytes.

width
number | null
required

Pixels, when known.

height
number | null
required

Pixels, when known.

url
string
required

The original file.

previewUrl
string
required

A small preview image.

tags
string[]
required
created
string<date-time> | null
required
modified
string<date-time> | null
required