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

Response

200
application/json

Successful Response

The response is of type object.