Skip to main content
PUT
Replace an Asset’s content

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Path Parameters

assetId
string<uuid>
required

Body

application/json
content
string
required

The file’s whole text, such as an HTML document. At most 5 MB. An HTML file carries its own styles, scripts and images inline.

Minimum string length: 1

Response

The Asset, with its new content.

id
string
required

The Asset ID, which is also its artifact ID: read the content with getArtifactText or downloadArtifact.

name
string
required

The file name, with its extension.

description
string | null
required
kind
string | null
required
tags
string[]
required
mimeType
string | null
required
sizeBytes
integer | null
required
Required range: x >= 0
projectId
string | null
required

The project the Asset is published to, or null for a team Asset.

webUrl
string<uri>
required

The Asset in Effective’s viewer. Share this link: it opens for people who can read the Asset, after sign-in.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required