PATCH
/
v4
/
knowledge-bases
/
{knowledge_base_id}
/
artifacts
/
{artifact_id}
import SGPClient from 'sgp';

const client = new SGPClient({
  apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});

const artifact = await client.knowledgeBases.artifacts.update('knowledge_base_id', 'artifact_id');

console.log(artifact.knowledge_base_id);
{
  "artifact_id": "<string>",
  "knowledge_base_id": "<string>",
  "chunking_strategy_config": {
    "strategy": "character",
    "separator": "\n\n",
    "chunk_size": 1000,
    "chunk_overlap": 200
  },
  "artifact_name": "<string>",
  "artifact_uri": "<string>",
  "artifact_uri_public": "<string>",
  "content_modification_identifier": "<string>",
  "source": "S3",
  "status": "Pending",
  "status_reason": "<string>",
  "checkpoint": "Pending",
  "created_at": "<string>",
  "updated_at": "<string>",
  "deleted_at": "<string>",
  "tags": {}
}

Authorizations

x-api-key
string
header
required

Path Parameters

knowledge_base_id
string
required
artifact_id
string
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.