Body
Required
-
Search query string (minimum 3 characters)
-
Filter search results by project ID
-
Maximum number of results per index
Default value is
3
. -
Number of results to skip
Default value is
0
. -
List of index names to search in
Values are
assets
,shots
, orpersons
. Default value is["assets", "shots", "persons"]
.
POST
/data/search
curl \
--request POST 'http://api.example.com/data/search' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"query":"test will search for test","project_id":"a24a6ea4-ce75-4665-a070-57453082c25","limit":3,"offset":0,"index_names":["assets"]}'
Request examples
{
"query": "test will search for test",
"project_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"limit": 3,
"offset": 0,
"index_names": [
"assets"
]
}
Response examples (200)
{
"persons": [
{}
],
"assets": [
{}
],
"shots": [
{}
]
}