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

Templates

get

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
is_protectedbooleanOptional
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.

osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
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/templates/
GET /templates/ 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",
      "os": "LEG",
      "is_protected": true,
      "last_update": "2026-01-01T00:00:00.000Z",
      "sections": [
        {
          "id": 1,
          "name": "text",
          "retrieval_method": "FILE",
          "retrieval_output": "PTXT",
          "target": "text",
          "template": 1,
          "fields": [
            {
              "id": 1,
              "name": "text",
              "order": 1,
              "retrieval_value": "text",
              "override_target": true,
              "new_target": "text",
              "retrieval_method": "FILE",
              "retrieval_output": "PTXT",
              "section": 1,
              "options": null
            }
          ],
          "options": null,
          "is_active": true
        }
      ]
    }
  ]
}
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
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
Responses
201Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
post/templates/
POST /templates/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 372

"name='text'&os='LEG'&is_protected=true&sections=[{'name':'text','retrieval_method':'FILE','retrieval_output':'PTXT','target':'text','template':1,'fields':[{'name':'text','order':1,'retrieval_value':'text','override_target':true,'new_target':'text','retrieval_method':'FILE','retrieval_output':'PTXT','section':1,'options':null}],'options':null,'is_active':true}]"
201Success
{
  "id": 1,
  "name": "text",
  "os": "LEG",
  "is_protected": true,
  "last_update": "2026-01-01T00:00:00.000Z",
  "sections": [
    {
      "id": 1,
      "name": "text",
      "retrieval_method": "FILE",
      "retrieval_output": "PTXT",
      "target": "text",
      "template": 1,
      "fields": [
        {
          "id": 1,
          "name": "text",
          "order": 1,
          "retrieval_value": "text",
          "override_target": true,
          "new_target": "text",
          "retrieval_method": "FILE",
          "retrieval_output": "PTXT",
          "section": 1,
          "options": null
        }
      ],
      "options": null,
      "is_active": true
    }
  ]
}
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 template.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
get/templates/{id}/
GET /templates/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "name": "text",
  "os": "LEG",
  "is_protected": true,
  "last_update": "2026-01-01T00:00:00.000Z",
  "sections": [
    {
      "id": 1,
      "name": "text",
      "retrieval_method": "FILE",
      "retrieval_output": "PTXT",
      "target": "text",
      "template": 1,
      "fields": [
        {
          "id": 1,
          "name": "text",
          "order": 1,
          "retrieval_value": "text",
          "override_target": true,
          "new_target": "text",
          "retrieval_method": "FILE",
          "retrieval_output": "PTXT",
          "section": 1,
          "options": null
        }
      ],
      "options": null,
      "is_active": true
    }
  ]
}
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 template.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
put/templates/{id}/
PUT /templates/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 372

"name='text'&os='LEG'&is_protected=true&sections=[{'name':'text','retrieval_method':'FILE','retrieval_output':'PTXT','target':'text','template':1,'fields':[{'name':'text','order':1,'retrieval_value':'text','override_target':true,'new_target':'text','retrieval_method':'FILE','retrieval_output':'PTXT','section':1,'options':null}],'options':null,'is_active':true}]"
200Success
{
  "id": 1,
  "name": "text",
  "os": "LEG",
  "is_protected": true,
  "last_update": "2026-01-01T00:00:00.000Z",
  "sections": [
    {
      "id": 1,
      "name": "text",
      "retrieval_method": "FILE",
      "retrieval_output": "PTXT",
      "target": "text",
      "template": 1,
      "fields": [
        {
          "id": 1,
          "name": "text",
          "order": 1,
          "retrieval_value": "text",
          "override_target": true,
          "new_target": "text",
          "retrieval_method": "FILE",
          "retrieval_output": "PTXT",
          "section": 1,
          "options": null
        }
      ],
      "options": null,
      "is_active": true
    }
  ]
}
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 template.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/templates/{id}/
DELETE /templates/{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 template.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyOptional
namestring · max: 50Optional
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyOptional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
patch/templates/{id}/
PATCH /templates/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 372

"name='text'&os='LEG'&is_protected=true&sections=[{'name':'text','retrieval_method':'FILE','retrieval_output':'PTXT','target':'text','template':1,'fields':[{'name':'text','order':1,'retrieval_value':'text','override_target':true,'new_target':'text','retrieval_method':'FILE','retrieval_output':'PTXT','section':1,'options':null}],'options':null,'is_active':true}]"
200Success
{
  "id": 1,
  "name": "text",
  "os": "LEG",
  "is_protected": true,
  "last_update": "2026-01-01T00:00:00.000Z",
  "sections": [
    {
      "id": 1,
      "name": "text",
      "retrieval_method": "FILE",
      "retrieval_output": "PTXT",
      "target": "text",
      "template": 1,
      "fields": [
        {
          "id": 1,
          "name": "text",
          "order": 1,
          "retrieval_value": "text",
          "override_target": true,
          "new_target": "text",
          "retrieval_method": "FILE",
          "retrieval_output": "PTXT",
          "section": 1,
          "options": null
        }
      ],
      "options": null,
      "is_active": true
    }
  ]
}
get

Export a template and its nested sections and fields, using specific serializers to strip ids and fk relations

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this template.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
get/templates/{id}/export/
GET /templates/{id}/export/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "name": "text",
  "os": "LEG",
  "is_protected": true,
  "last_update": "2026-01-01T00:00:00.000Z",
  "sections": [
    {
      "id": 1,
      "name": "text",
      "retrieval_method": "FILE",
      "retrieval_output": "PTXT",
      "target": "text",
      "template": 1,
      "fields": [
        {
          "id": 1,
          "name": "text",
          "order": 1,
          "retrieval_value": "text",
          "override_target": true,
          "new_target": "text",
          "retrieval_method": "FILE",
          "retrieval_output": "PTXT",
          "section": 1,
          "options": null
        }
      ],
      "options": null,
      "is_active": true
    }
  ]
}
post

Import (append) one or more sections, with their nested fields, into an existing template. Used by the partial template import: the sections come from an exported template file and are attached as brand new sections, so any provided id is dropped and the template is forced to the target one.

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this template.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
post/templates/{id}/import-sections/
POST /templates/{id}/import-sections/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 372

"name='text'&os='LEG'&is_protected=true&sections=[{'name':'text','retrieval_method':'FILE','retrieval_output':'PTXT','target':'text','template':1,'fields':[{'name':'text','order':1,'retrieval_value':'text','override_target':true,'new_target':'text','retrieval_method':'FILE','retrieval_output':'PTXT','section':1,'options':null}],'options':null,'is_active':true}]"
200Success
{
  "id": 1,
  "name": "text",
  "os": "LEG",
  "is_protected": true,
  "last_update": "2026-01-01T00:00:00.000Z",
  "sections": [
    {
      "id": 1,
      "name": "text",
      "retrieval_method": "FILE",
      "retrieval_output": "PTXT",
      "target": "text",
      "template": 1,
      "fields": [
        {
          "id": 1,
          "name": "text",
          "order": 1,
          "retrieval_value": "text",
          "override_target": true,
          "new_target": "text",
          "retrieval_method": "FILE",
          "retrieval_output": "PTXT",
          "section": 1,
          "options": null
        }
      ],
      "options": null,
      "is_active": true
    }
  ]
}
get

List the version history for this template

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this template.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
get/templates/{id}/versions/
GET /templates/{id}/versions/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "name": "text",
  "os": "LEG",
  "is_protected": true,
  "last_update": "2026-01-01T00:00:00.000Z",
  "sections": [
    {
      "id": 1,
      "name": "text",
      "retrieval_method": "FILE",
      "retrieval_output": "PTXT",
      "target": "text",
      "template": 1,
      "fields": [
        {
          "id": 1,
          "name": "text",
          "order": 1,
          "retrieval_value": "text",
          "override_target": true,
          "new_target": "text",
          "retrieval_method": "FILE",
          "retrieval_output": "PTXT",
          "section": 1,
          "options": null
        }
      ],
      "options": null,
      "is_active": true
    }
  ]
}
post

List the version history for this template

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this template.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
post/templates/{id}/versions/
POST /templates/{id}/versions/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 372

"name='text'&os='LEG'&is_protected=true&sections=[{'name':'text','retrieval_method':'FILE','retrieval_output':'PTXT','target':'text','template':1,'fields':[{'name':'text','order':1,'retrieval_value':'text','override_target':true,'new_target':'text','retrieval_method':'FILE','retrieval_output':'PTXT','section':1,'options':null}],'options':null,'is_active':true}]"
200Success
{
  "id": 1,
  "name": "text",
  "os": "LEG",
  "is_protected": true,
  "last_update": "2026-01-01T00:00:00.000Z",
  "sections": [
    {
      "id": 1,
      "name": "text",
      "retrieval_method": "FILE",
      "retrieval_output": "PTXT",
      "target": "text",
      "template": 1,
      "fields": [
        {
          "id": 1,
          "name": "text",
          "order": 1,
          "retrieval_value": "text",
          "override_target": true,
          "new_target": "text",
          "retrieval_method": "FILE",
          "retrieval_output": "PTXT",
          "section": 1,
          "options": null
        }
      ],
      "options": null,
      "is_active": true
    }
  ]
}
get

Retrieve a single version, including its full snapshot, or delete it

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this template.

version_idstringRequired
Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
get/templates/{id}/versions/{version_id}/
GET /templates/{id}/versions/{version_id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "name": "text",
  "os": "LEG",
  "is_protected": true,
  "last_update": "2026-01-01T00:00:00.000Z",
  "sections": [
    {
      "id": 1,
      "name": "text",
      "retrieval_method": "FILE",
      "retrieval_output": "PTXT",
      "target": "text",
      "template": 1,
      "fields": [
        {
          "id": 1,
          "name": "text",
          "order": 1,
          "retrieval_value": "text",
          "override_target": true,
          "new_target": "text",
          "retrieval_method": "FILE",
          "retrieval_output": "PTXT",
          "section": 1,
          "options": null
        }
      ],
      "options": null,
      "is_active": true
    }
  ]
}
delete

Retrieve a single version, including its full snapshot, or delete it

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this template.

version_idstringRequired
Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/templates/{id}/versions/{version_id}/
DELETE /templates/{id}/versions/{version_id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

post

Restore the template to the state captured in a previous version.

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this template.

version_idstringRequired
Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 50Required
osstring · enumOptional
  • LEG - Legacy
  • DEB - Linux (Debian based)
  • RHEL - Linux (RHEL based)
  • MAC - Mac
  • WIN - Windows
  • SNMP - SNMP
  • VIRT - Virtualization
Possible values:
is_protectedbooleanOptional
last_updatestring · date-timeRead-onlyRequired
post/templates/{id}/versions/{version_id}/rollback/
POST /templates/{id}/versions/{version_id}/rollback/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 372

"name='text'&os='LEG'&is_protected=true&sections=[{'name':'text','retrieval_method':'FILE','retrieval_output':'PTXT','target':'text','template':1,'fields':[{'name':'text','order':1,'retrieval_value':'text','override_target':true,'new_target':'text','retrieval_method':'FILE','retrieval_output':'PTXT','section':1,'options':null}],'options':null,'is_active':true}]"
200Success
{
  "id": 1,
  "name": "text",
  "os": "LEG",
  "is_protected": true,
  "last_update": "2026-01-01T00:00:00.000Z",
  "sections": [
    {
      "id": 1,
      "name": "text",
      "retrieval_method": "FILE",
      "retrieval_output": "PTXT",
      "target": "text",
      "template": 1,
      "fields": [
        {
          "id": 1,
          "name": "text",
          "order": 1,
          "retrieval_value": "text",
          "override_target": true,
          "new_target": "text",
          "retrieval_method": "FILE",
          "retrieval_output": "PTXT",
          "section": 1,
          "options": null
        }
      ],
      "options": null,
      "is_active": true
    }
  ]
}

Last updated