Skip to main content
POST
/
api
/
rules
Create rule
curl --request POST \
  --url https://console.neuronsearchlab.com/api/rules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "context_id": 123,
  "type": "boost",
  "conditions": [
    {}
  ],
  "boost": 123
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.neuronsearchlab.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Platform API key issued from Console > Platform API Keys. Format: nsl__.

Body

application/json
name
string
context_id
integer
type
enum<string>
Available options:
boost,
bury,
pin,
filter,
cap,
dedupe,
reorder,
group
conditions
object[]
boost
number

Response

Created rule

The response is of type object.