Skip to main content
POST
/
Dataset
/
{datasetId}
/
knowledge-graph
/
enable
Enable knowledge graph on a dataset
curl --request POST \
  --url https://api.starleads.co/Dataset/{datasetId}/knowledge-graph/enable \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "entityTypes": [
    "person",
    "company",
    "product"
  ]
}
'
{
  "success": true
}

Authorizations

X-Api-Key
string
header
required

Headers

X-Api-Key
string
required

Api key to pass as a X-Api-Key request header.

Path Parameters

datasetId
string
required

ID of the dataset.

Body

application/json

Request to enable knowledge graph on a dataset

entityTypes
string[] | null

Entity types to extract for the knowledge graph

Response

Knowledge graph enabled successfully

Generic success response

success
boolean

Indicates the operation was successful