Skip to main content
PATCH
Rename a template asset

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

The ID of the item to update

Example:

"01a20d6a-ff7d-7054-8be8-02a413c6b54d"

Body

application/json
name
string

Name of the asset (1 to 255 characters). On upload it is the trimmed file_name cut to 50 characters, or the file_id when no file_name was sent.

Required string length: 1 - 255
Example:

"hero-image.png"

Response

The updated Template Asset

An image or file uploaded for use in email templates. Optional fields with no value are left out of responses. Lists page with starting_after: pass the previous page's next_starting_after until there is none.

id
string<uuid>
required
read-only

Unique identifier for the asset

Example:

"01a20d6a-b935-7242-9f5d-8de08ef1398b"

name
string
required

Name of the asset (1 to 255 characters). On upload it is the trimmed file_name cut to 50 characters, or the file_id when no file_name was sent.

Required string length: 1 - 255
Example:

"hero-image.png"

url
null | string
required
read-only

Public URL of the asset. Null once the asset is rejected by moderation.

Example:

"https://cdn.example.com/asset/workspace-id/template/asset-id.png"

content_type
string
required
read-only

MIME type of the asset

Example:

"image/png"

size
number
required
read-only

File size in bytes

Example:

12345

timestamp_created
string<date-time>
required
read-only

Timestamp when the asset was uploaded

Example:

"2026-11-24T11:57:07.765Z"

timestamp_updated
string<date-time>
required
read-only

Timestamp when the asset was last updated

Example:

"2026-11-24T11:57:07.765Z"

created_by
string
required
read-only

ID of the user who uploaded the asset, or the literal api_key when it was uploaded with an API key

Example:

"01a20d6a-b935-7242-9f5d-8de11727f4d0"

moderation
object
required
read-only

Content moderation result