Gatana logoGatana Docs
RoutesArtifactsArtifactid

/artifacts/{artifactId}

Change the title, visibility or theme of an artifact without touching its content

PATCH
/artifacts/{artifactId}
AuthorizationBearer <token>

In: header

Path Parameters

artifactId*string

Request Body

application/json

title?string
Lengthlength <= 500
visibility?string

'private': the creator and the users and teams it is shared with; 'tenant': every signed-in member; 'public': anyone with the link

Value in"private" | "tenant" | "public"
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 PATCH "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"
}