Asset
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.
Token-based authentication with required prefix "Token"
Number of results to return per page.
The initial index from which to return the results.
Which field to use when ordering the results.
A search term.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /asset/bases/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"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"
}
]
}Handle post request, suitable for single and multi creation
Args: request ([dict]): can be dict or list of dicts
Returns: [type]: [description]
Token-based authentication with required prefix "Token"
Serializer class for Base
Serializer class for Base
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"{
"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"
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this inventory base.
Serializer class for Base
GET /asset/bases/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"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"
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this inventory base.
Serializer class for Base
Serializer class for Base
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"{
"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"
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this inventory base.
No response body
No content
DELETE /asset/bases/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this inventory base.
Serializer class for Base
Serializer class for Base
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"{
"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"
}Create an asset and its inventory (if template_inventory is provided).
Token-based authentication with required prefix "Token"
Serializer class for Base
Response shape on successful asset creation/update
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
}Update an asset and fully overwrite its inventory (missing sections/fields are deleted).
Token-based authentication with required prefix "Token"
Serializer class for Base
Response shape on successful asset creation/update
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
}Partially update an asset and its inventory (only the provided sections/fields are affected).
Token-based authentication with required prefix "Token"
Serializer class for Base
Response shape on successful asset creation/update
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
}Allow read of agent config This view is reachable at the /asset/configs/ endpoint.
GET: List agent configuration
Token-based authentication with required prefix "Token"
Number of results to return per page.
The initial index from which to return the results.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /asset/configs/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"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
}
]
}Allow read of agent config This view is reachable at the /asset/configs/ endpoint.
GET: List agent configuration
Token-based authentication with required prefix "Token"
A unique value identifying this config.
This serialize class provide the API representation
GET /asset/configs/{name}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"name": "text",
"value": null
}Template Field ViewSet
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
Number of results to return per page.
The initial index from which to return the results.
Which field to use when ordering the results.
A search term.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /asset/fields/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"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"
}
]
}Handle post request, suitable for single and multi creation
Args: request ([dict]): can be dict or list of dicts
Returns: [type]: [description]
Token-based authentication with required prefix "Token"
Serializer class for InventoryField
Serializer class for InventoryField
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'"{
"id": 1,
"inventory_section": 1,
"template_field": 1,
"value": "text"
}Template Field ViewSet
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this inventory field.
Serializer class for InventoryField
GET /asset/fields/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"inventory_section": 1,
"template_field": 1,
"value": "text"
}Template Field ViewSet
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this inventory field.
Serializer class for InventoryField
Serializer class for InventoryField
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'"{
"id": 1,
"inventory_section": 1,
"template_field": 1,
"value": "text"
}Template Field ViewSet
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this inventory field.
No response body
No content
DELETE /asset/fields/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
Template Field ViewSet
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this inventory field.
Serializer class for InventoryField
Serializer class for InventoryField
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'"{
"id": 1,
"inventory_section": 1,
"template_field": 1,
"value": "text"
}Return the list of objects that the user can see (public, private_personal, private_group)
Token-based authentication with required prefix "Token"
Number of results to return per page.
The initial index from which to return the results.
Which field to use when ordering the results.
A search term.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /asset/groups/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"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
]
}
]
}Handle post request, suitable for single and multi creation
Args: request ([dict]): can be dict or list of dicts
Returns: [type]: [description]
Token-based authentication with required prefix "Token"
Serializer class for AssetGroup
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
Serializer class for AssetGroup
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
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]"{
"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
]
}AssetGroup ViewSet
Inherits from RestrictVisibilityViewSet to restrict the visibility of the Search objects based on user and group membership
Token-based authentication with required prefix "Token"
A unique integer value identifying this asset group.
Serializer class for AssetGroup
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
GET /asset/groups/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"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
]
}User needs to either be the creator or part of the group (if allow_group_modification is enabled) to modify a visibility restricted object
Token-based authentication with required prefix "Token"
A unique integer value identifying this asset group.
Serializer class for AssetGroup
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
Serializer class for AssetGroup
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
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]"{
"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
]
}User needs to be the creator to delete a visibility restricted object
Token-based authentication with required prefix "Token"
A unique integer value identifying this asset group.
No response body
No content
DELETE /asset/groups/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
AssetGroup ViewSet
Inherits from RestrictVisibilityViewSet to restrict the visibility of the Search objects based on user and group membership
Token-based authentication with required prefix "Token"
A unique integer value identifying this asset group.
Serializer class for AssetGroup
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
Serializer class for AssetGroup
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
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]"{
"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
]
}Create or partially update an asset and its inventory from the legacy XML agent payload (OCS legacy protocol).
Token-based authentication with required prefix "Token"
Serializer class for Base
Response shape on successful legacy asset creation/update
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>
This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
Number of results to return per page.
The initial index from which to return the results.
Which field to use when ordering the results.
INVENTORY_BASE_INSERT- Inserting new items into the base inventoryINVENTORY_BASE_UPDATE- Updating existing items in the base inventoryINVENTORY_EXT_INSERT- Inserting new items into the extended inventoryINVENTORY_EXT_UPDATE- Updating existing items in the extended inventoryINVENTORY_BASE_ERR- Error related to the base inventory operationsINVENTORY_EXT_ERR- Error related to the extended inventory operationsDEPLOYMENT_ACK- Acknowledgment of a successful deploymentDEPLOYMENT_ERR- Error during the deployment processCONFIG_UPDATE- Updating configuration settingsCONFIG_ERR- Error related to configuration operationsTEMPLATE_UPDATE- Updating templates for a processTEMPLATE_ERR- Error related to template operationsUNKNOWN- Unknown error happend (default)
A search term.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /asset/logs/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"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"
}
]
}Handle post request, suitable for single and multi creation
Args: request ([dict]): can be dict or list of dicts
Returns: [type]: [description]
Token-based authentication with required prefix "Token"
This serialize class provide the API representation
INVENTORY_BASE_INSERT- Inserting new items into the base inventoryINVENTORY_BASE_UPDATE- Updating existing items in the base inventoryINVENTORY_EXT_INSERT- Inserting new items into the extended inventoryINVENTORY_EXT_UPDATE- Updating existing items in the extended inventoryINVENTORY_BASE_ERR- Error related to the base inventory operationsINVENTORY_EXT_ERR- Error related to the extended inventory operationsDEPLOYMENT_ACK- Acknowledgment of a successful deploymentDEPLOYMENT_ERR- Error during the deployment processCONFIG_UPDATE- Updating configuration settingsCONFIG_ERR- Error related to configuration operationsTEMPLATE_UPDATE- Updating templates for a processTEMPLATE_ERR- Error related to template operationsUNKNOWN- Unknown error happend (default)
This serialize class provide the API representation
INVENTORY_BASE_INSERT- Inserting new items into the base inventoryINVENTORY_BASE_UPDATE- Updating existing items in the base inventoryINVENTORY_EXT_INSERT- Inserting new items into the extended inventoryINVENTORY_EXT_UPDATE- Updating existing items in the extended inventoryINVENTORY_BASE_ERR- Error related to the base inventory operationsINVENTORY_EXT_ERR- Error related to the extended inventory operationsDEPLOYMENT_ACK- Acknowledgment of a successful deploymentDEPLOYMENT_ERR- Error during the deployment processCONFIG_UPDATE- Updating configuration settingsCONFIG_ERR- Error related to configuration operationsTEMPLATE_UPDATE- Updating templates for a processTEMPLATE_ERR- Error related to template operationsUNKNOWN- Unknown error happend (default)
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'"{
"id": 1,
"asset": 1,
"timestamp": "2026-01-01T00:00:00.000Z",
"scope": "INVENTORY_BASE_INSERT",
"comment": "text"
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this log.
This serialize class provide the API representation
INVENTORY_BASE_INSERT- Inserting new items into the base inventoryINVENTORY_BASE_UPDATE- Updating existing items in the base inventoryINVENTORY_EXT_INSERT- Inserting new items into the extended inventoryINVENTORY_EXT_UPDATE- Updating existing items in the extended inventoryINVENTORY_BASE_ERR- Error related to the base inventory operationsINVENTORY_EXT_ERR- Error related to the extended inventory operationsDEPLOYMENT_ACK- Acknowledgment of a successful deploymentDEPLOYMENT_ERR- Error during the deployment processCONFIG_UPDATE- Updating configuration settingsCONFIG_ERR- Error related to configuration operationsTEMPLATE_UPDATE- Updating templates for a processTEMPLATE_ERR- Error related to template operationsUNKNOWN- Unknown error happend (default)
GET /asset/logs/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"asset": 1,
"timestamp": "2026-01-01T00:00:00.000Z",
"scope": "INVENTORY_BASE_INSERT",
"comment": "text"
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this log.
This serialize class provide the API representation
INVENTORY_BASE_INSERT- Inserting new items into the base inventoryINVENTORY_BASE_UPDATE- Updating existing items in the base inventoryINVENTORY_EXT_INSERT- Inserting new items into the extended inventoryINVENTORY_EXT_UPDATE- Updating existing items in the extended inventoryINVENTORY_BASE_ERR- Error related to the base inventory operationsINVENTORY_EXT_ERR- Error related to the extended inventory operationsDEPLOYMENT_ACK- Acknowledgment of a successful deploymentDEPLOYMENT_ERR- Error during the deployment processCONFIG_UPDATE- Updating configuration settingsCONFIG_ERR- Error related to configuration operationsTEMPLATE_UPDATE- Updating templates for a processTEMPLATE_ERR- Error related to template operationsUNKNOWN- Unknown error happend (default)
This serialize class provide the API representation
INVENTORY_BASE_INSERT- Inserting new items into the base inventoryINVENTORY_BASE_UPDATE- Updating existing items in the base inventoryINVENTORY_EXT_INSERT- Inserting new items into the extended inventoryINVENTORY_EXT_UPDATE- Updating existing items in the extended inventoryINVENTORY_BASE_ERR- Error related to the base inventory operationsINVENTORY_EXT_ERR- Error related to the extended inventory operationsDEPLOYMENT_ACK- Acknowledgment of a successful deploymentDEPLOYMENT_ERR- Error during the deployment processCONFIG_UPDATE- Updating configuration settingsCONFIG_ERR- Error related to configuration operationsTEMPLATE_UPDATE- Updating templates for a processTEMPLATE_ERR- Error related to template operationsUNKNOWN- Unknown error happend (default)
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'"{
"id": 1,
"asset": 1,
"timestamp": "2026-01-01T00:00:00.000Z",
"scope": "INVENTORY_BASE_INSERT",
"comment": "text"
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this log.
No response body
No content
DELETE /asset/logs/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this log.
This serialize class provide the API representation
INVENTORY_BASE_INSERT- Inserting new items into the base inventoryINVENTORY_BASE_UPDATE- Updating existing items in the base inventoryINVENTORY_EXT_INSERT- Inserting new items into the extended inventoryINVENTORY_EXT_UPDATE- Updating existing items in the extended inventoryINVENTORY_BASE_ERR- Error related to the base inventory operationsINVENTORY_EXT_ERR- Error related to the extended inventory operationsDEPLOYMENT_ACK- Acknowledgment of a successful deploymentDEPLOYMENT_ERR- Error during the deployment processCONFIG_UPDATE- Updating configuration settingsCONFIG_ERR- Error related to configuration operationsTEMPLATE_UPDATE- Updating templates for a processTEMPLATE_ERR- Error related to template operationsUNKNOWN- Unknown error happend (default)
This serialize class provide the API representation
INVENTORY_BASE_INSERT- Inserting new items into the base inventoryINVENTORY_BASE_UPDATE- Updating existing items in the base inventoryINVENTORY_EXT_INSERT- Inserting new items into the extended inventoryINVENTORY_EXT_UPDATE- Updating existing items in the extended inventoryINVENTORY_BASE_ERR- Error related to the base inventory operationsINVENTORY_EXT_ERR- Error related to the extended inventory operationsDEPLOYMENT_ACK- Acknowledgment of a successful deploymentDEPLOYMENT_ERR- Error during the deployment processCONFIG_UPDATE- Updating configuration settingsCONFIG_ERR- Error related to configuration operationsTEMPLATE_UPDATE- Updating templates for a processTEMPLATE_ERR- Error related to template operationsUNKNOWN- Unknown error happend (default)
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'"{
"id": 1,
"asset": 1,
"timestamp": "2026-01-01T00:00:00.000Z",
"scope": "INVENTORY_BASE_INSERT",
"comment": "text"
}Check whether an asset exists based on reconciliation criteria. Returns {'id': asset_id} if found, else {'id': False}.
Token-based authentication with required prefix "Token"
id: the matched asset's id, or False if no asset matched
POST /asset/reconciliation/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": null
}Inventory Section ViewSet
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
Number of results to return per page.
The initial index from which to return the results.
Which field to use when ordering the results.
A search term.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /asset/sections/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"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
]
}
]
}Handle post request, suitable for single and multi creation
Args: request ([dict]): can be dict or list of dicts
Returns: [type]: [description]
Token-based authentication with required prefix "Token"
Serializer class for InventorySection
Serializer class for InventorySection
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]"{
"id": 1,
"base": 1,
"template_section": 1,
"fields": [
1
]
}Inventory Section ViewSet
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this inventory section.
Serializer class for InventorySection
GET /asset/sections/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"base": 1,
"template_section": 1,
"fields": [
1
]
}Inventory Section ViewSet
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this inventory section.
Serializer class for InventorySection
Serializer class for InventorySection
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]"{
"id": 1,
"base": 1,
"template_section": 1,
"fields": [
1
]
}Inventory Section ViewSet
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this inventory section.
No response body
No content
DELETE /asset/sections/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
Inventory Section ViewSet
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this inventory section.
Serializer class for InventorySection
Serializer class for InventorySection
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]"{
"id": 1,
"base": 1,
"template_section": 1,
"fields": [
1
]
}Last updated

