Skip to main content
POST
Edit an artifact
Authenticate with a Tess API token in the Authorization: Bearer header. See the Artifacts API guide for the full flow, permissions and ownership rules.

Code Examples

Path Parameters

string
required
The artifact ID (universal_id), for example artifact_5d1f0c2e-8a3b-4c6d-9e7f-1a2b3c4d5e6f.

Headers

integer
required
Workspace ID. Required as of 2026-09-01. Until then, if omitted, the user’s selected workspace is used (deprecated). After the cutoff, a missing header returns 422.

Request Body

integer
Version the edit is based on (minimum 1). If the latest version is newer, the call fails with 409.
object[]
required
One or more operations (at most 40). Each has op: replace (old, new), insert_before / insert_after (anchor, text), replace_range (from, to, new), prepend / append (text), set_text (selector, text), replace_element (selector, html), set_attribute (selector, name, value) or remove_element (selector). Selector operations target one element of the content region.

Response

200

Response fields

string
The artifact ID.
integer
The new version number.
string
Title.
string
Link that opens the artifact in Tess.

Errors

409

Authorizations

Authorization
string
header
required

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

Headers

x-workspace-id
integer

Workspace id. If not provided, the user's selected workspace is used.

Path Parameters

universal_id
string
required

Body

application/json
operations
object[]
required
Required array length: 1 - 40 elements
base_version
integer | null
Required range: x >= 1

Response

New head version

universal_id
string
version
integer
title
string
viewer_url
string