POST
/
v4
/
knowledge-bases
/
{knowledge_base_id}
/
artifacts
/
batch-delete
import SGPClient from 'sgp';

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

async function main() {
  const response = await client.knowledgeBases.artifacts.batchDelete('knowledge_base_id', {
    artifact_ids: ['string'],
  });

  console.log(response.artifact_ids);
}

main();
{
  "artifact_ids": [
    "<string>"
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

knowledge_base_id
string
required

Body

application/json
artifact_ids
string[]
required

List of artifact ids to delete

Response

200
application/json
Successful Response
artifact_ids
string[]
required

List of artifact ids that were deleted