Update Artifact
const url = 'https://api.ultimateteam.ai/api/v1/team-chat/artifacts/example';const options = { method: 'PUT', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"content":{},"updated_by":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.ultimateteam.ai/api/v1/team-chat/artifacts/example \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "content": {}, "updated_by": "example" }'Update a shared artifact (creates a new version).
Args: artifact_id: The artifact UUID string. body: Artifact update data. user: The authenticated user context. svc: The artifact service (injected).
Returns: The new artifact version.
Raises: HTTPException: 404 if artifact not found.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Input schema for updating a shared artifact.
Creates a new version with updated content.
Attributes: content: The updated artifact data. updated_by: Agent role performing the update.
object
object
Examplegenerated
{ "content": {}, "updated_by": "example"}Responses
Section titled “ Responses ”Successful Response
Response schema for a persisted shared artifact.
Attributes: id: Unique artifact identifier. thread_id: Owning thread identifier. tenant_id: Owning tenant UUID. artifact_type: Type classification. name: Human-readable artifact name. content: The artifact data. version: Version number. created_by: Agent role that created it. updated_by: Agent role that last updated it. parent_artifact_id: Previous version’s ID. created_at: When the artifact was created. updated_at: When the artifact was last updated.
object
object
Examplegenerated
{ "artifact_type": "example", "content": {}, "created_at": "2026-04-15T12:00:00Z", "created_by": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "parent_artifact_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "tenant_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "thread_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "updated_at": "2026-04-15T12:00:00Z", "updated_by": "example", "version": 1}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}