Gatana logoGatana Docs
RoutesArtifactsArtifactid

/artifacts/{artifactId}

Update an artifact in place, storing new Markdown or HTML as a new version behind the same URL, or change its title or theme

PUT
/artifacts/{artifactId}
AuthorizationBearer <token>

In: header

Path Parameters

artifactId*string

Request Body

application/json

title?string
Lengthlength <= 500
html?string

A complete, self-contained HTML document. Give either html or markdown, not both

Length1 <= length <= 52428800
markdown?string

A Markdown document (GitHub flavored). Stored as written and rendered to HTML when served. Give either html or markdown, not both

Length1 <= length <= 10485760
theme?string

Stylesheet linked into the page when it is served. 'gatana' (the default) applies the Gatana fonts, colors and typography to plain HTML; 'none' serves the document as published

Value in"none" | "gatana"

Response Body

application/json

curl -X PUT "https://YOUR_ORG_ID.gatana.ai/api/v1/artifacts/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "title": "string",
  "createdByUserId": "string",
  "createdByUserName": "string",
  "createdByUserEmail": "string",
  "visibility": "private",
  "theme": "none",
  "currentVersion": 0,
  "sharedWithUserIds": [
    "string"
  ],
  "sharedWithTeamIds": [
    "string"
  ],
  "createdAt": "string",
  "updatedAt": "string",
  "url": "string"
}