Skip to main content
POST
/
v1
/
knowledge
/
refresh
Refresh Context
curl --request POST \
  --url https://api.adapter.com/v1/knowledge/refresh \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "delete_old_snapshots": false
}
'
{
  "task_id": "<string>",
  "status": "<string>",
  "run_id": 123,
  "snapshots_deleted": 123
}

Authorizations

Authorization
string
header
required

Pass your pk_live_... API key as a Bearer token.

Body

application/json
delete_old_snapshots
boolean
default:false

Delete all old snapshots after enqueuing the refresh.

Response

Successful Response

task_id
string
required
status
string
required
run_id
integer
required
snapshots_deleted
integer | null