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

Asset

get

The default listing, plus the virtual columns asked for in the URL

Values are resolved once for the page and passed by serializer context, so a column costs one query and not one per asset.

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
agentstringOptional
descriptionstringOptional
domainstringOptional
formatstring · enumOptionalPossible values:
is_template_forcedbooleanOptional
last_updatestring · 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.

osnamestringOptional
osversionstringOptional
searchstringOptional

A search term.

serialstringOptional
srcipstringOptional
srcmacstringOptional
templateintegerOptional
uuidstringOptional
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/asset/bases/
GET /asset/bases/ 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,
      "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"
    }
  ]
}
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

Serializer class for Base

idintegerRead-onlyRequired
namestring · max: 50Required
descriptionstring · max: 255 · nullableOptional
serialstring · max: 255Required
osnamestring · max: 255Required
osversionstring · max: 255Optional
uuidstring · max: 255Required
srcipstring · max: 255Optional
srcmacstring · max: 255Optional
domainstring · max: 255Optional
agentstring · max: 255Optional
templateinteger · nullableOptional
last_updatestring · date-timeRead-onlyRequired
is_template_forcedbooleanOptional
matchedstringRead-onlyRequired
Responses
201Success

Serializer class for Base

idintegerRead-onlyRequired
namestring · max: 50Required
descriptionstring · max: 255 · nullableOptional
serialstring · max: 255Required
osnamestring · max: 255Required
osversionstring · max: 255Optional
uuidstring · max: 255Required
srcipstring · max: 255Optional
srcmacstring · max: 255Optional
domainstring · max: 255Optional
agentstring · max: 255Optional
templateinteger · nullableOptional
last_updatestring · date-timeRead-onlyRequired
is_template_forcedbooleanOptional
matchedstringRead-onlyRequired
post/asset/bases/
POST /asset/bases/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 202

"name='text'&description='text'&serial='text'&osname='text'&osversion='text'&uuid='text'&srcip='text'&srcmac='text'&domain='text'&agent='text'&template=1&is_template_forced=true"
201Success
{
  "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

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this inventory base.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

Serializer class for Base

idintegerRead-onlyRequired
namestring · max: 50Required
descriptionstring · max: 255 · nullableOptional
serialstring · max: 255Required
osnamestring · max: 255Required
osversionstring · max: 255Optional
uuidstring · max: 255Required
srcipstring · max: 255Optional
srcmacstring · max: 255Optional
domainstring · max: 255Optional
agentstring · max: 255Optional
templateinteger · nullableOptional
last_updatestring · date-timeRead-onlyRequired
is_template_forcedbooleanOptional
matchedstringRead-onlyRequired
get/asset/bases/{id}/
GET /asset/bases/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "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"
}
put

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this inventory base.

Query parameters
formatstring · enumOptionalPossible values:
Body

Serializer class for Base

idintegerRead-onlyRequired
namestring · max: 50Required
descriptionstring · max: 255 · nullableOptional
serialstring · max: 255Required
osnamestring · max: 255Required
osversionstring · max: 255Optional
uuidstring · max: 255Required
srcipstring · max: 255Optional
srcmacstring · max: 255Optional
domainstring · max: 255Optional
agentstring · max: 255Optional
templateinteger · nullableOptional
last_updatestring · date-timeRead-onlyRequired
is_template_forcedbooleanOptional
matchedstringRead-onlyRequired
Responses
200Success

Serializer class for Base

idintegerRead-onlyRequired
namestring · max: 50Required
descriptionstring · max: 255 · nullableOptional
serialstring · max: 255Required
osnamestring · max: 255Required
osversionstring · max: 255Optional
uuidstring · max: 255Required
srcipstring · max: 255Optional
srcmacstring · max: 255Optional
domainstring · max: 255Optional
agentstring · max: 255Optional
templateinteger · nullableOptional
last_updatestring · date-timeRead-onlyRequired
is_template_forcedbooleanOptional
matchedstringRead-onlyRequired
put/asset/bases/{id}/
PUT /asset/bases/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 202

"name='text'&description='text'&serial='text'&osname='text'&osversion='text'&uuid='text'&srcip='text'&srcmac='text'&domain='text'&agent='text'&template=1&is_template_forced=true"
200Success
{
  "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"
}
delete

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this inventory base.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/asset/bases/{id}/
DELETE /asset/bases/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this inventory base.

Query parameters
formatstring · enumOptionalPossible values:
Body

Serializer class for Base

idintegerRead-onlyOptional
namestring · max: 50Optional
descriptionstring · max: 255 · nullableOptional
serialstring · max: 255Optional
osnamestring · max: 255Optional
osversionstring · max: 255Optional
uuidstring · max: 255Optional
srcipstring · max: 255Optional
srcmacstring · max: 255Optional
domainstring · max: 255Optional
agentstring · max: 255Optional
templateinteger · nullableOptional
last_updatestring · date-timeRead-onlyOptional
is_template_forcedbooleanOptional
matchedstringRead-onlyOptional
Responses
200Success

Serializer class for Base

idintegerRead-onlyRequired
namestring · max: 50Required
descriptionstring · max: 255 · nullableOptional
serialstring · max: 255Required
osnamestring · max: 255Required
osversionstring · max: 255Optional
uuidstring · max: 255Required
srcipstring · max: 255Optional
srcmacstring · max: 255Optional
domainstring · max: 255Optional
agentstring · max: 255Optional
templateinteger · nullableOptional
last_updatestring · date-timeRead-onlyRequired
is_template_forcedbooleanOptional
matchedstringRead-onlyRequired
patch/asset/bases/{id}/
PATCH /asset/bases/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 202

"name='text'&description='text'&serial='text'&osname='text'&osversion='text'&uuid='text'&srcip='text'&srcmac='text'&domain='text'&agent='text'&template=1&is_template_forced=true"
200Success
{
  "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"
}
post

Create an asset and its inventory (if template_inventory is provided).

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
Body

Serializer class for Base

idintegerRead-onlyRequired
namestring · max: 50Required
descriptionstring · max: 255 · nullableOptional
serialstring · max: 255Required
osnamestring · max: 255Required
osversionstring · max: 255Optional
uuidstring · max: 255Required
srcipstring · max: 255Optional
srcmacstring · max: 255Optional
domainstring · max: 255Optional
agentstring · max: 255Optional
templateinteger · nullableOptional
last_updatestring · date-timeRead-onlyRequired
is_template_forcedbooleanOptional
matchedstringRead-onlyRequired
Responses
201Success

Response shape on successful asset creation/update

messagestringRequired
idintegerRequired
post/asset/collection/
POST /asset/collection/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 202

"name='text'&description='text'&serial='text'&osname='text'&osversion='text'&uuid='text'&srcip='text'&srcmac='text'&domain='text'&agent='text'&template=1&is_template_forced=true"
{
  "message": "text",
  "id": 1
}
put

Update an asset and fully overwrite its inventory (missing sections/fields are deleted).

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
Body

Serializer class for Base

idintegerRead-onlyRequired
namestring · max: 50Required
descriptionstring · max: 255 · nullableOptional
serialstring · max: 255Required
osnamestring · max: 255Required
osversionstring · max: 255Optional
uuidstring · max: 255Required
srcipstring · max: 255Optional
srcmacstring · max: 255Optional
domainstring · max: 255Optional
agentstring · max: 255Optional
templateinteger · nullableOptional
last_updatestring · date-timeRead-onlyRequired
is_template_forcedbooleanOptional
matchedstringRead-onlyRequired
Responses
200Success

Response shape on successful asset creation/update

messagestringRequired
idintegerRequired
put/asset/collection/
PUT /asset/collection/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 202

"name='text'&description='text'&serial='text'&osname='text'&osversion='text'&uuid='text'&srcip='text'&srcmac='text'&domain='text'&agent='text'&template=1&is_template_forced=true"
{
  "message": "text",
  "id": 1
}
patch

Partially update an asset and its inventory (only the provided sections/fields are affected).

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
Body

Serializer class for Base

idintegerRead-onlyOptional
namestring · max: 50Optional
descriptionstring · max: 255 · nullableOptional
serialstring · max: 255Optional
osnamestring · max: 255Optional
osversionstring · max: 255Optional
uuidstring · max: 255Optional
srcipstring · max: 255Optional
srcmacstring · max: 255Optional
domainstring · max: 255Optional
agentstring · max: 255Optional
templateinteger · nullableOptional
last_updatestring · date-timeRead-onlyOptional
is_template_forcedbooleanOptional
matchedstringRead-onlyOptional
Responses
200Success

Response shape on successful asset creation/update

messagestringRequired
idintegerRequired
patch/asset/collection/
PATCH /asset/collection/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 202

"name='text'&description='text'&serial='text'&osname='text'&osversion='text'&uuid='text'&srcip='text'&srcmac='text'&domain='text'&agent='text'&template=1&is_template_forced=true"
{
  "message": "text",
  "id": 1
}
get

Allow read of agent config This view is reachable at the /asset/configs/ endpoint.

GET: List agent configuration

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.

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/asset/configs/
GET /asset/configs/ 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": [
    {
      "name": "text",
      "value": null
    }
  ]
}
get

Allow read of agent config This view is reachable at the /asset/configs/ endpoint.

GET: List agent configuration

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
namestringRequired

A unique value identifying this config.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

namestring · max: 100Required
valueanyRequired
get/asset/configs/{name}/
GET /asset/configs/{name}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "name": "text",
  "value": null
}
get

Template Field ViewSet

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
idintegerOptional
inventory_sectionintegerOptional
limitintegerOptional

Number of results to return per page.

offsetintegerOptional

The initial index from which to return the results.

orderingstringOptional

Which field to use when ordering the results.

searchstringOptional

A search term.

template_fieldintegerOptional
valuestringOptional
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/asset/fields/
GET /asset/fields/ 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,
      "inventory_section": 1,
      "template_field": 1,
      "value": "text"
    }
  ]
}
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

Serializer class for InventoryField

idintegerRead-onlyRequired
inventory_sectionintegerRequired
template_fieldintegerRequired
valuestring · nullableOptional
Responses
201Success

Serializer class for InventoryField

idintegerRead-onlyRequired
inventory_sectionintegerRequired
template_fieldintegerRequired
valuestring · nullableOptional
post/asset/fields/
POST /asset/fields/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 57

"inventory_section=1&template_field=1&value='text'"
201Success
{
  "id": 1,
  "inventory_section": 1,
  "template_field": 1,
  "value": "text"
}
get

Template Field ViewSet

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this inventory field.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

Serializer class for InventoryField

idintegerRead-onlyRequired
inventory_sectionintegerRequired
template_fieldintegerRequired
valuestring · nullableOptional
get/asset/fields/{id}/
GET /asset/fields/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "inventory_section": 1,
  "template_field": 1,
  "value": "text"
}
put

Template Field ViewSet

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this inventory field.

Query parameters
formatstring · enumOptionalPossible values:
Body

Serializer class for InventoryField

idintegerRead-onlyRequired
inventory_sectionintegerRequired
template_fieldintegerRequired
valuestring · nullableOptional
Responses
200Success

Serializer class for InventoryField

idintegerRead-onlyRequired
inventory_sectionintegerRequired
template_fieldintegerRequired
valuestring · nullableOptional
put/asset/fields/{id}/
PUT /asset/fields/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 57

"inventory_section=1&template_field=1&value='text'"
200Success
{
  "id": 1,
  "inventory_section": 1,
  "template_field": 1,
  "value": "text"
}
delete

Template Field ViewSet

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this inventory field.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/asset/fields/{id}/
DELETE /asset/fields/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

Template Field ViewSet

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this inventory field.

Query parameters
formatstring · enumOptionalPossible values:
Body

Serializer class for InventoryField

idintegerRead-onlyOptional
inventory_sectionintegerOptional
template_fieldintegerOptional
valuestring · nullableOptional
Responses
200Success

Serializer class for InventoryField

idintegerRead-onlyRequired
inventory_sectionintegerRequired
template_fieldintegerRequired
valuestring · nullableOptional
patch/asset/fields/{id}/
PATCH /asset/fields/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 57

"inventory_section=1&template_field=1&value='text'"
200Success
{
  "id": 1,
  "inventory_section": 1,
  "template_field": 1,
  "value": "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
assetsinteger[]Optional
descriptionstringOptional
formatstring · enumOptionalPossible values:
is_dynamicbooleanOptional
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/asset/groups/
GET /asset/groups/ 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,
      "name": "text",
      "description": "text",
      "is_dynamic": true,
      "search": null,
      "last_updated": "2026-01-01T00:00:00.000Z",
      "user": 1,
      "groups": [
        1
      ],
      "assets": [
        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

Serializer class for AssetGroup

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

Serializer class for AssetGroup

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

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

AssetGroup ViewSet

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

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this asset group.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

Serializer class for AssetGroup

idintegerRead-onlyRequired
visibilitystring · enumOptional
  • public - Public
  • private_personal - Private (Personal)
  • private_group - Private (Group)
Possible values:
allow_group_modificationbooleanOptional
namestring · max: 50Required
descriptionstring · max: 255 · nullableOptional
is_dynamicbooleanOptional
searchany · nullableOptional
last_updatedstring · date-timeRead-onlyRequired
userintegerRequired
groupsinteger[]Optional
assetsinteger[]Optional
get/asset/groups/{id}/
GET /asset/groups/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "visibility": "public",
  "allow_group_modification": true,
  "name": "text",
  "description": "text",
  "is_dynamic": true,
  "search": null,
  "last_updated": "2026-01-01T00:00:00.000Z",
  "user": 1,
  "groups": [
    1
  ],
  "assets": [
    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 asset group.

Query parameters
formatstring · enumOptionalPossible values:
Body

Serializer class for AssetGroup

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

Serializer class for AssetGroup

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

"visibility='public'&allow_group_modification=true&name='text'&description='text'&is_dynamic=true&search=null&user=1&groups=[1]&assets=[1]"
200Success
{
  "id": 1,
  "visibility": "public",
  "allow_group_modification": true,
  "name": "text",
  "description": "text",
  "is_dynamic": true,
  "search": null,
  "last_updated": "2026-01-01T00:00:00.000Z",
  "user": 1,
  "groups": [
    1
  ],
  "assets": [
    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 asset group.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/asset/groups/{id}/
DELETE /asset/groups/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

AssetGroup ViewSet

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

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this asset group.

Query parameters
formatstring · enumOptionalPossible values:
Body

Serializer class for AssetGroup

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

Serializer class for AssetGroup

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

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

Create or partially update an asset and its inventory from the legacy XML agent payload (OCS legacy protocol).

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Body

Serializer class for Base

idintegerRead-onlyRequired
namestring · max: 50Required
descriptionstring · max: 255 · nullableOptional
serialstring · max: 255Required
osnamestring · max: 255Required
osversionstring · max: 255Optional
uuidstring · max: 255Required
srcipstring · max: 255Optional
srcmacstring · max: 255Optional
domainstring · max: 255Optional
agentstring · max: 255Optional
templateinteger · nullableOptional
last_updatestring · date-timeRead-onlyRequired
is_template_forcedbooleanOptional
matchedstringRead-onlyRequired
Responses
200Success
application/xml

Response shape on successful legacy asset creation/update

messagestringRequired
idintegerRequired
post/asset/legacy/
POST /asset/legacy/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/*
Accept: */*
Content-Length: 202

{
  "name": "text",
  "description": "text",
  "serial": "text",
  "osname": "text",
  "osversion": "text",
  "uuid": "text",
  "srcip": "text",
  "srcmac": "text",
  "domain": "text",
  "agent": "text",
  "template": 1,
  "is_template_forced": true
}
<?xml version="1.0"?>
<object>
	<message>text</message>
	<id>1</id>
</object>
get

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
assetintegerOptional
commentstringOptional
formatstring · enumOptionalPossible values:
limitintegerOptional

Number of results to return per page.

offsetintegerOptional

The initial index from which to return the results.

orderingstringOptional

Which field to use when ordering the results.

scopestring · enumOptional
  • INVENTORY_BASE_INSERT - Inserting new items into the base inventory
  • INVENTORY_BASE_UPDATE - Updating existing items in the base inventory
  • INVENTORY_EXT_INSERT - Inserting new items into the extended inventory
  • INVENTORY_EXT_UPDATE - Updating existing items in the extended inventory
  • INVENTORY_BASE_ERR - Error related to the base inventory operations
  • INVENTORY_EXT_ERR - Error related to the extended inventory operations
  • DEPLOYMENT_ACK - Acknowledgment of a successful deployment
  • DEPLOYMENT_ERR - Error during the deployment process
  • CONFIG_UPDATE - Updating configuration settings
  • CONFIG_ERR - Error related to configuration operations
  • TEMPLATE_UPDATE - Updating templates for a process
  • TEMPLATE_ERR - Error related to template operations
  • UNKNOWN - Unknown error happend (default)
Possible values:
searchstringOptional

A search term.

timestampstring · date-timeOptional
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/asset/logs/
GET /asset/logs/ 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,
      "asset": 1,
      "timestamp": "2026-01-01T00:00:00.000Z",
      "scope": "INVENTORY_BASE_INSERT",
      "comment": "text"
    }
  ]
}
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
assetinteger · nullableOptional
timestampstring · date-timeRead-onlyRequired
scopestring · enumOptional
  • INVENTORY_BASE_INSERT - Inserting new items into the base inventory
  • INVENTORY_BASE_UPDATE - Updating existing items in the base inventory
  • INVENTORY_EXT_INSERT - Inserting new items into the extended inventory
  • INVENTORY_EXT_UPDATE - Updating existing items in the extended inventory
  • INVENTORY_BASE_ERR - Error related to the base inventory operations
  • INVENTORY_EXT_ERR - Error related to the extended inventory operations
  • DEPLOYMENT_ACK - Acknowledgment of a successful deployment
  • DEPLOYMENT_ERR - Error during the deployment process
  • CONFIG_UPDATE - Updating configuration settings
  • CONFIG_ERR - Error related to configuration operations
  • TEMPLATE_UPDATE - Updating templates for a process
  • TEMPLATE_ERR - Error related to template operations
  • UNKNOWN - Unknown error happend (default)
Possible values:
commentstring · max: 255Required
Responses
201Success

This serialize class provide the API representation

idintegerRead-onlyRequired
assetinteger · nullableOptional
timestampstring · date-timeRead-onlyRequired
scopestring · enumOptional
  • INVENTORY_BASE_INSERT - Inserting new items into the base inventory
  • INVENTORY_BASE_UPDATE - Updating existing items in the base inventory
  • INVENTORY_EXT_INSERT - Inserting new items into the extended inventory
  • INVENTORY_EXT_UPDATE - Updating existing items in the extended inventory
  • INVENTORY_BASE_ERR - Error related to the base inventory operations
  • INVENTORY_EXT_ERR - Error related to the extended inventory operations
  • DEPLOYMENT_ACK - Acknowledgment of a successful deployment
  • DEPLOYMENT_ERR - Error during the deployment process
  • CONFIG_UPDATE - Updating configuration settings
  • CONFIG_ERR - Error related to configuration operations
  • TEMPLATE_UPDATE - Updating templates for a process
  • TEMPLATE_ERR - Error related to template operations
  • UNKNOWN - Unknown error happend (default)
Possible values:
commentstring · max: 255Required
post/asset/logs/
POST /asset/logs/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 60

"asset=1&scope='INVENTORY_BASE_INSERT'&comment='text'"
201Success
{
  "id": 1,
  "asset": 1,
  "timestamp": "2026-01-01T00:00:00.000Z",
  "scope": "INVENTORY_BASE_INSERT",
  "comment": "text"
}
get

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this log.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
assetinteger · nullableOptional
timestampstring · date-timeRead-onlyRequired
scopestring · enumOptional
  • INVENTORY_BASE_INSERT - Inserting new items into the base inventory
  • INVENTORY_BASE_UPDATE - Updating existing items in the base inventory
  • INVENTORY_EXT_INSERT - Inserting new items into the extended inventory
  • INVENTORY_EXT_UPDATE - Updating existing items in the extended inventory
  • INVENTORY_BASE_ERR - Error related to the base inventory operations
  • INVENTORY_EXT_ERR - Error related to the extended inventory operations
  • DEPLOYMENT_ACK - Acknowledgment of a successful deployment
  • DEPLOYMENT_ERR - Error during the deployment process
  • CONFIG_UPDATE - Updating configuration settings
  • CONFIG_ERR - Error related to configuration operations
  • TEMPLATE_UPDATE - Updating templates for a process
  • TEMPLATE_ERR - Error related to template operations
  • UNKNOWN - Unknown error happend (default)
Possible values:
commentstring · max: 255Required
get/asset/logs/{id}/
GET /asset/logs/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "asset": 1,
  "timestamp": "2026-01-01T00:00:00.000Z",
  "scope": "INVENTORY_BASE_INSERT",
  "comment": "text"
}
put

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this log.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
assetinteger · nullableOptional
timestampstring · date-timeRead-onlyRequired
scopestring · enumOptional
  • INVENTORY_BASE_INSERT - Inserting new items into the base inventory
  • INVENTORY_BASE_UPDATE - Updating existing items in the base inventory
  • INVENTORY_EXT_INSERT - Inserting new items into the extended inventory
  • INVENTORY_EXT_UPDATE - Updating existing items in the extended inventory
  • INVENTORY_BASE_ERR - Error related to the base inventory operations
  • INVENTORY_EXT_ERR - Error related to the extended inventory operations
  • DEPLOYMENT_ACK - Acknowledgment of a successful deployment
  • DEPLOYMENT_ERR - Error during the deployment process
  • CONFIG_UPDATE - Updating configuration settings
  • CONFIG_ERR - Error related to configuration operations
  • TEMPLATE_UPDATE - Updating templates for a process
  • TEMPLATE_ERR - Error related to template operations
  • UNKNOWN - Unknown error happend (default)
Possible values:
commentstring · max: 255Required
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
assetinteger · nullableOptional
timestampstring · date-timeRead-onlyRequired
scopestring · enumOptional
  • INVENTORY_BASE_INSERT - Inserting new items into the base inventory
  • INVENTORY_BASE_UPDATE - Updating existing items in the base inventory
  • INVENTORY_EXT_INSERT - Inserting new items into the extended inventory
  • INVENTORY_EXT_UPDATE - Updating existing items in the extended inventory
  • INVENTORY_BASE_ERR - Error related to the base inventory operations
  • INVENTORY_EXT_ERR - Error related to the extended inventory operations
  • DEPLOYMENT_ACK - Acknowledgment of a successful deployment
  • DEPLOYMENT_ERR - Error during the deployment process
  • CONFIG_UPDATE - Updating configuration settings
  • CONFIG_ERR - Error related to configuration operations
  • TEMPLATE_UPDATE - Updating templates for a process
  • TEMPLATE_ERR - Error related to template operations
  • UNKNOWN - Unknown error happend (default)
Possible values:
commentstring · max: 255Required
put/asset/logs/{id}/
PUT /asset/logs/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 60

"asset=1&scope='INVENTORY_BASE_INSERT'&comment='text'"
200Success
{
  "id": 1,
  "asset": 1,
  "timestamp": "2026-01-01T00:00:00.000Z",
  "scope": "INVENTORY_BASE_INSERT",
  "comment": "text"
}
delete

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this log.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/asset/logs/{id}/
DELETE /asset/logs/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this log.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyOptional
assetinteger · nullableOptional
timestampstring · date-timeRead-onlyOptional
scopestring · enumOptional
  • INVENTORY_BASE_INSERT - Inserting new items into the base inventory
  • INVENTORY_BASE_UPDATE - Updating existing items in the base inventory
  • INVENTORY_EXT_INSERT - Inserting new items into the extended inventory
  • INVENTORY_EXT_UPDATE - Updating existing items in the extended inventory
  • INVENTORY_BASE_ERR - Error related to the base inventory operations
  • INVENTORY_EXT_ERR - Error related to the extended inventory operations
  • DEPLOYMENT_ACK - Acknowledgment of a successful deployment
  • DEPLOYMENT_ERR - Error during the deployment process
  • CONFIG_UPDATE - Updating configuration settings
  • CONFIG_ERR - Error related to configuration operations
  • TEMPLATE_UPDATE - Updating templates for a process
  • TEMPLATE_ERR - Error related to template operations
  • UNKNOWN - Unknown error happend (default)
Possible values:
commentstring · max: 255Optional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
assetinteger · nullableOptional
timestampstring · date-timeRead-onlyRequired
scopestring · enumOptional
  • INVENTORY_BASE_INSERT - Inserting new items into the base inventory
  • INVENTORY_BASE_UPDATE - Updating existing items in the base inventory
  • INVENTORY_EXT_INSERT - Inserting new items into the extended inventory
  • INVENTORY_EXT_UPDATE - Updating existing items in the extended inventory
  • INVENTORY_BASE_ERR - Error related to the base inventory operations
  • INVENTORY_EXT_ERR - Error related to the extended inventory operations
  • DEPLOYMENT_ACK - Acknowledgment of a successful deployment
  • DEPLOYMENT_ERR - Error during the deployment process
  • CONFIG_UPDATE - Updating configuration settings
  • CONFIG_ERR - Error related to configuration operations
  • TEMPLATE_UPDATE - Updating templates for a process
  • TEMPLATE_ERR - Error related to template operations
  • UNKNOWN - Unknown error happend (default)
Possible values:
commentstring · max: 255Required
patch/asset/logs/{id}/
PATCH /asset/logs/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 60

"asset=1&scope='INVENTORY_BASE_INSERT'&comment='text'"
200Success
{
  "id": 1,
  "asset": 1,
  "timestamp": "2026-01-01T00:00:00.000Z",
  "scope": "INVENTORY_BASE_INSERT",
  "comment": "text"
}
post

Check whether an asset exists based on reconciliation criteria. Returns {'id': asset_id} if found, else {'id': False}.

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

id: the matched asset's id, or False if no asset matched

idanyRequired
post/asset/reconciliation/
POST /asset/reconciliation/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": null
}
get

Inventory Section ViewSet

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
baseintegerOptional
formatstring · enumOptionalPossible values:
idintegerOptional
limitintegerOptional

Number of results to return per page.

offsetintegerOptional

The initial index from which to return the results.

orderingstringOptional

Which field to use when ordering the results.

searchstringOptional

A search term.

template_sectionintegerOptional
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/asset/sections/
GET /asset/sections/ 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,
      "base": 1,
      "template_section": 1,
      "fields": [
        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

Serializer class for InventorySection

idintegerRead-onlyRequired
baseintegerRequired
template_sectionintegerRequired
fieldsinteger[]Required
Responses
201Success

Serializer class for InventorySection

idintegerRead-onlyRequired
baseintegerRequired
template_sectionintegerRequired
fieldsinteger[]Required
post/asset/sections/
POST /asset/sections/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 44

"base=1&template_section=1&fields=[1]"
201Success
{
  "id": 1,
  "base": 1,
  "template_section": 1,
  "fields": [
    1
  ]
}
get

Inventory Section ViewSet

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this inventory section.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

Serializer class for InventorySection

idintegerRead-onlyRequired
baseintegerRequired
template_sectionintegerRequired
fieldsinteger[]Required
get/asset/sections/{id}/
GET /asset/sections/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "base": 1,
  "template_section": 1,
  "fields": [
    1
  ]
}
put

Inventory Section ViewSet

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this inventory section.

Query parameters
formatstring · enumOptionalPossible values:
Body

Serializer class for InventorySection

idintegerRead-onlyRequired
baseintegerRequired
template_sectionintegerRequired
fieldsinteger[]Required
Responses
200Success

Serializer class for InventorySection

idintegerRead-onlyRequired
baseintegerRequired
template_sectionintegerRequired
fieldsinteger[]Required
put/asset/sections/{id}/
PUT /asset/sections/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 44

"base=1&template_section=1&fields=[1]"
200Success
{
  "id": 1,
  "base": 1,
  "template_section": 1,
  "fields": [
    1
  ]
}
delete

Inventory Section ViewSet

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this inventory section.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/asset/sections/{id}/
DELETE /asset/sections/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

Inventory Section ViewSet

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this inventory section.

Query parameters
formatstring · enumOptionalPossible values:
Body

Serializer class for InventorySection

idintegerRead-onlyOptional
baseintegerOptional
template_sectionintegerOptional
fieldsinteger[]Optional
Responses
200Success

Serializer class for InventorySection

idintegerRead-onlyRequired
baseintegerRequired
template_sectionintegerRequired
fieldsinteger[]Required
patch/asset/sections/{id}/
PATCH /asset/sections/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 44

"base=1&template_section=1&fields=[1]"
200Success
{
  "id": 1,
  "base": 1,
  "template_section": 1,
  "fields": [
    1
  ]
}

Last updated