For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Search

post

Run a multi-condition search across assets and their related data (results, logs, snmpscanner, inventory_sections, software_dictionary_entries).

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
limitintegerOptional

Number of results to return per page.

offsetintegerOptional

The initial index from which to return the results.

Body

Payload accepted by POST /search/.

search_data is a list of AND-groups; groups are combined using each group's first condition 'link' (AND/OR).

groupedbooleanOptional

If true, results are grouped by asset with a single matched row per relation.

Default: true
ungroupbooleanOptional

If true, one row is returned per matched related record instead of one per asset.

Default: false
Responses
200Success
countintegerRequiredExample: 123
nextstring · uri · nullableOptionalExample: http://api.example.org/accounts/?offset=400&limit=100
previousstring · uri · nullableOptionalExample: http://api.example.org/accounts/?offset=200&limit=100
post/search/
POST /search/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 178

"search_data=[[{'object':'text','route':'text','field':'text','fieldtype':'text','operator':'text','value':null,'link':'AND','section':'text'}]]&grouped=true&ungroup=false"
{
  "count": 123,
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100",
  "results": [
    {
      "id": 1,
      "name": "text",
      "description": "text",
      "serial": "text",
      "osname": "text",
      "osversion": "text",
      "uuid": "text",
      "srcip": "text",
      "srcmac": "text",
      "domain": "text",
      "agent": "text",
      "template": 1,
      "last_update": "2026-01-01T00:00:00.000Z",
      "is_template_forced": true,
      "matched": "text"
    }
  ]
}
get

Return the list of objects that the user can see (public, private_personal, private_group)

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
descriptionstringOptional
formatstring · enumOptionalPossible values:
idintegerOptional
last_updatedstring · date-timeOptional
limitintegerOptional

Number of results to return per page.

namestringOptional
offsetintegerOptional

The initial index from which to return the results.

orderingstringOptional

Which field to use when ordering the results.

searchstringOptional

A search term.

Responses
200Success
countintegerRequiredExample: 123
nextstring · uri · nullableOptionalExample: http://api.example.org/accounts/?offset=400&limit=100
previousstring · uri · nullableOptionalExample: http://api.example.org/accounts/?offset=200&limit=100
get/search/save/
GET /search/save/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "count": 123,
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100",
  "results": [
    {
      "id": 1,
      "visibility": "public",
      "allow_group_modification": true,
      "search": null,
      "last_updated": "2026-01-01T00:00:00.000Z",
      "name": "text",
      "description": "text",
      "user": 1,
      "groups": [
        1
      ]
    }
  ]
}
post

Handle post request, suitable for single and multi creation

Args: request ([dict]): can be dict or list of dicts

Returns: [type]: [description]

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
visibilitystring · enumOptional
  • public - Public
  • private_personal - Private (Personal)
  • private_group - Private (Group)
Possible values:
allow_group_modificationbooleanOptional
searchanyRequired
last_updatedstring · date-timeRead-onlyRequired
namestring · max: 50Required
descriptionstring · nullableOptional
userintegerRequired
groupsinteger[]Optional
Responses
201Success

This serialize class provide the API representation

idintegerRead-onlyRequired
visibilitystring · enumOptional
  • public - Public
  • private_personal - Private (Personal)
  • private_group - Private (Group)
Possible values:
allow_group_modificationbooleanOptional
searchanyRequired
last_updatedstring · date-timeRead-onlyRequired
namestring · max: 50Required
descriptionstring · nullableOptional
userintegerRequired
groupsinteger[]Optional
post/search/save/
POST /search/save/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 126

"visibility='public'&allow_group_modification=true&search=null&name='text'&description='text'&user=1&groups=[1]"
201Success
{
  "id": 1,
  "visibility": "public",
  "allow_group_modification": true,
  "search": null,
  "last_updated": "2026-01-01T00:00:00.000Z",
  "name": "text",
  "description": "text",
  "user": 1,
  "groups": [
    1
  ]
}
get

This class will define the view behavior

Inherits from RestrictVisibilityViewSet to restrict the visibility of the Search objects based on user and group membership

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this search.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
visibilitystring · enumOptional
  • public - Public
  • private_personal - Private (Personal)
  • private_group - Private (Group)
Possible values:
allow_group_modificationbooleanOptional
searchanyRequired
last_updatedstring · date-timeRead-onlyRequired
namestring · max: 50Required
descriptionstring · nullableOptional
userintegerRequired
groupsinteger[]Optional
get/search/save/{id}/
GET /search/save/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "visibility": "public",
  "allow_group_modification": true,
  "search": null,
  "last_updated": "2026-01-01T00:00:00.000Z",
  "name": "text",
  "description": "text",
  "user": 1,
  "groups": [
    1
  ]
}
put

User needs to either be the creator or part of the group (if allow_group_modification is enabled) to modify a visibility restricted object

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this search.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
visibilitystring · enumOptional
  • public - Public
  • private_personal - Private (Personal)
  • private_group - Private (Group)
Possible values:
allow_group_modificationbooleanOptional
searchanyRequired
last_updatedstring · date-timeRead-onlyRequired
namestring · max: 50Required
descriptionstring · nullableOptional
userintegerRequired
groupsinteger[]Optional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
visibilitystring · enumOptional
  • public - Public
  • private_personal - Private (Personal)
  • private_group - Private (Group)
Possible values:
allow_group_modificationbooleanOptional
searchanyRequired
last_updatedstring · date-timeRead-onlyRequired
namestring · max: 50Required
descriptionstring · nullableOptional
userintegerRequired
groupsinteger[]Optional
put/search/save/{id}/
PUT /search/save/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 126

"visibility='public'&allow_group_modification=true&search=null&name='text'&description='text'&user=1&groups=[1]"
200Success
{
  "id": 1,
  "visibility": "public",
  "allow_group_modification": true,
  "search": null,
  "last_updated": "2026-01-01T00:00:00.000Z",
  "name": "text",
  "description": "text",
  "user": 1,
  "groups": [
    1
  ]
}
delete

User needs to be the creator to delete a visibility restricted object

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this search.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/search/save/{id}/
DELETE /search/save/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

This class will define the view behavior

Inherits from RestrictVisibilityViewSet to restrict the visibility of the Search objects based on user and group membership

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this search.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyOptional
visibilitystring · enumOptional
  • public - Public
  • private_personal - Private (Personal)
  • private_group - Private (Group)
Possible values:
allow_group_modificationbooleanOptional
searchanyOptional
last_updatedstring · date-timeRead-onlyOptional
namestring · max: 50Optional
descriptionstring · nullableOptional
userintegerOptional
groupsinteger[]Optional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
visibilitystring · enumOptional
  • public - Public
  • private_personal - Private (Personal)
  • private_group - Private (Group)
Possible values:
allow_group_modificationbooleanOptional
searchanyRequired
last_updatedstring · date-timeRead-onlyRequired
namestring · max: 50Required
descriptionstring · nullableOptional
userintegerRequired
groupsinteger[]Optional
patch/search/save/{id}/
PATCH /search/save/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 126

"visibility='public'&allow_group_modification=true&search=null&name='text'&description='text'&user=1&groups=[1]"
200Success
{
  "id": 1,
  "visibility": "public",
  "allow_group_modification": true,
  "search": null,
  "last_updated": "2026-01-01T00:00:00.000Z",
  "name": "text",
  "description": "text",
  "user": 1,
  "groups": [
    1
  ]
}

Last updated