Artifacts

Replace an artifact's source

Changed on

Compiles React source and publishes it as the next revision of an artifact, exactly as update_app does for an agent. The artifact keeps its tools, saved data and public link. Requires the artifactsCli feature, editor access to the artifact, and the revision the caller last saw.

put/v1/mcp-apps/{appId}

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

appId, string required

Request body

McpAppDeployReplaceRequest required
title, string required
description, string
textFallback, string required
reactSource, string required
cssSource, string
expectedRevisionId, string required

Response

The published revision.

McpAppDeployResponse required
appId, string required
pluginId, string required
revisionId, string required
title, string required
description, string nullable required
textFallback, string required
toolName, 'open_app' required
resourceUri, string required
serverPath, string required
tools, object[] required

Changes