Skip to main content
POST
Publish an Asset

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

File name with its extension, such as q4-loss-review.html.

Required string length: 1 - 255
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
kind
string
required

What the Asset is, in a word such as report, tracker or deck. Reuse a kind that listAssets returns in kinds when one fits.

Required string length: 1 - 64
projectId
string

Publish into this project. An ID from listProjects.

Required string length: 1 - 200
scope
enum<string>

team publishes for every member of the organization.

Available options:
team
description
string
Maximum string length: 2000
tags
string[]
Maximum array length: 50
Required string length: 1 - 64

Response

The published Asset.

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