Automation
Action viewset
Token-based authentication with required prefix "Token"
set- Set
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 /automation/action/ 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,
"rule": 1,
"priority": 1,
"action": "set",
"content_type": 1,
"object_id": 1,
"object_slug": "text",
"field": "text",
"value": null
}
]
}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
set- Set
This serialize class provide the API representation
set- Set
POST /automation/action/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 118
"rule=1&priority=1&action='set'&content_type=1&object_id=1&object_slug='text'&field='text'&value=null"{
"id": 1,
"rule": 1,
"priority": 1,
"action": "set",
"content_type": 1,
"object_id": 1,
"object_slug": "text",
"field": "text",
"value": null
}Action viewset
Token-based authentication with required prefix "Token"
A unique integer value identifying this action.
This serialize class provide the API representation
set- Set
GET /automation/action/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"rule": 1,
"priority": 1,
"action": "set",
"content_type": 1,
"object_id": 1,
"object_slug": "text",
"field": "text",
"value": null
}Action viewset
Token-based authentication with required prefix "Token"
A unique integer value identifying this action.
This serialize class provide the API representation
set- Set
This serialize class provide the API representation
set- Set
PUT /automation/action/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 118
"rule=1&priority=1&action='set'&content_type=1&object_id=1&object_slug='text'&field='text'&value=null"{
"id": 1,
"rule": 1,
"priority": 1,
"action": "set",
"content_type": 1,
"object_id": 1,
"object_slug": "text",
"field": "text",
"value": null
}Action viewset
Token-based authentication with required prefix "Token"
A unique integer value identifying this action.
No response body
No content
DELETE /automation/action/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
Action viewset
Token-based authentication with required prefix "Token"
A unique integer value identifying this action.
This serialize class provide the API representation
set- Set
This serialize class provide the API representation
set- Set
PATCH /automation/action/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 118
"rule=1&priority=1&action='set'&content_type=1&object_id=1&object_slug='text'&field='text'&value=null"{
"id": 1,
"rule": 1,
"priority": 1,
"action": "set",
"content_type": 1,
"object_id": 1,
"object_slug": "text",
"field": "text",
"value": null
}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.
A search term.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /automation/history/ 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,
"scheduler": 1,
"date": "2026-01-01T00:00:00.000Z",
"status": 1,
"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
This serialize class provide the API representation
POST /automation/history/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 43
"scheduler=1&status=1&comment='text'"{
"id": 1,
"scheduler": 1,
"date": "2026-01-01T00:00:00.000Z",
"status": 1,
"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 history.
This serialize class provide the API representation
GET /automation/history/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"scheduler": 1,
"date": "2026-01-01T00:00:00.000Z",
"status": 1,
"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 history.
This serialize class provide the API representation
This serialize class provide the API representation
PUT /automation/history/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 43
"scheduler=1&status=1&comment='text'"{
"id": 1,
"scheduler": 1,
"date": "2026-01-01T00:00:00.000Z",
"status": 1,
"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 history.
No response body
No content
DELETE /automation/history/{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 history.
This serialize class provide the API representation
This serialize class provide the API representation
PATCH /automation/history/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 43
"scheduler=1&status=1&comment='text'"{
"id": 1,
"scheduler": 1,
"date": "2026-01-01T00:00:00.000Z",
"status": 1,
"comment": "text"
}Rule viewset
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.
inventory_received- Inventory Receiveduser_login- User Loginnetdevice_received- Netdevice Received
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /automation/rule/ 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,
"priority": 1,
"description": "text",
"trigger": "inventory_received",
"enabled": true,
"logic": null,
"break_on_match": true,
"actions": [
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"
This serialize class provide the API representation
inventory_received- Inventory Receiveduser_login- User Loginnetdevice_received- Netdevice Received
This serialize class provide the API representation
inventory_received- Inventory Receiveduser_login- User Loginnetdevice_received- Netdevice Received
POST /automation/rule/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 130
"priority=1&description='text'&trigger='inventory_received'&enabled=true&logic=null&break_on_match=true&actions=[1]"{
"id": 1,
"priority": 1,
"description": "text",
"trigger": "inventory_received",
"enabled": true,
"logic": null,
"break_on_match": true,
"actions": [
1
]
}Rule viewset
Token-based authentication with required prefix "Token"
A unique integer value identifying this rule.
This serialize class provide the API representation
inventory_received- Inventory Receiveduser_login- User Loginnetdevice_received- Netdevice Received
GET /automation/rule/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"priority": 1,
"description": "text",
"trigger": "inventory_received",
"enabled": true,
"logic": null,
"break_on_match": true,
"actions": [
1
]
}Rule viewset
Token-based authentication with required prefix "Token"
A unique integer value identifying this rule.
This serialize class provide the API representation
inventory_received- Inventory Receiveduser_login- User Loginnetdevice_received- Netdevice Received
This serialize class provide the API representation
inventory_received- Inventory Receiveduser_login- User Loginnetdevice_received- Netdevice Received
PUT /automation/rule/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 130
"priority=1&description='text'&trigger='inventory_received'&enabled=true&logic=null&break_on_match=true&actions=[1]"{
"id": 1,
"priority": 1,
"description": "text",
"trigger": "inventory_received",
"enabled": true,
"logic": null,
"break_on_match": true,
"actions": [
1
]
}Rule viewset
Token-based authentication with required prefix "Token"
A unique integer value identifying this rule.
No response body
No content
DELETE /automation/rule/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
Rule viewset
Token-based authentication with required prefix "Token"
A unique integer value identifying this rule.
This serialize class provide the API representation
inventory_received- Inventory Receiveduser_login- User Loginnetdevice_received- Netdevice Received
This serialize class provide the API representation
inventory_received- Inventory Receiveduser_login- User Loginnetdevice_received- Netdevice Received
PATCH /automation/rule/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 130
"priority=1&description='text'&trigger='inventory_received'&enabled=true&logic=null&break_on_match=true&actions=[1]"{
"id": 1,
"priority": 1,
"description": "text",
"trigger": "inventory_received",
"enabled": true,
"logic": null,
"break_on_match": true,
"actions": [
1
]
}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.
hourly- hourlydaily- dailyweekly- weeklymonthly- monthly
A search term.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /automation/scheduler/ 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",
"active": true,
"recurrence": "hourly",
"last_execution": "2026-01-01T00:00:00.000Z",
"hour": "00:00:00",
"day_of_week": 1,
"day_of_month": 1,
"is_protected": true
}
]
}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
hourly- hourlydaily- dailyweekly- weeklymonthly- monthly
This serialize class provide the API representation
hourly- hourlydaily- dailyweekly- weeklymonthly- monthly
POST /automation/scheduler/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 187
"name='text'&description='text'&active=true&recurrence='hourly'&last_execution='2026-01-01T00:00:00.000Z'&hour='00:00:00'&day_of_week=1&day_of_month=1&is_protected=true"{
"id": 1,
"name": "text",
"description": "text",
"active": true,
"recurrence": "hourly",
"last_execution": "2026-01-01T00:00:00.000Z",
"hour": "00:00:00",
"day_of_week": 1,
"day_of_month": 1,
"is_protected": true
}This class will define the view behavior
Args: viewsets ([OCSViewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this scheduler.
This serialize class provide the API representation
hourly- hourlydaily- dailyweekly- weeklymonthly- monthly
GET /automation/scheduler/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"name": "text",
"description": "text",
"active": true,
"recurrence": "hourly",
"last_execution": "2026-01-01T00:00:00.000Z",
"hour": "00:00:00",
"day_of_week": 1,
"day_of_month": 1,
"is_protected": true
}This class will define the view behavior
Args: viewsets ([OCSViewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this scheduler.
This serialize class provide the API representation
hourly- hourlydaily- dailyweekly- weeklymonthly- monthly
This serialize class provide the API representation
hourly- hourlydaily- dailyweekly- weeklymonthly- monthly
PUT /automation/scheduler/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 187
"name='text'&description='text'&active=true&recurrence='hourly'&last_execution='2026-01-01T00:00:00.000Z'&hour='00:00:00'&day_of_week=1&day_of_month=1&is_protected=true"{
"id": 1,
"name": "text",
"description": "text",
"active": true,
"recurrence": "hourly",
"last_execution": "2026-01-01T00:00:00.000Z",
"hour": "00:00:00",
"day_of_week": 1,
"day_of_month": 1,
"is_protected": true
}This class will define the view behavior
Args: viewsets ([OCSViewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this scheduler.
No response body
No content
DELETE /automation/scheduler/{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 scheduler.
This serialize class provide the API representation
hourly- hourlydaily- dailyweekly- weeklymonthly- monthly
This serialize class provide the API representation
hourly- hourlydaily- dailyweekly- weeklymonthly- monthly
PATCH /automation/scheduler/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 187
"name='text'&description='text'&active=true&recurrence='hourly'&last_execution='2026-01-01T00:00:00.000Z'&hour='00:00:00'&day_of_week=1&day_of_month=1&is_protected=true"{
"id": 1,
"name": "text",
"description": "text",
"active": true,
"recurrence": "hourly",
"last_execution": "2026-01-01T00:00:00.000Z",
"hour": "00:00:00",
"day_of_week": 1,
"day_of_month": 1,
"is_protected": true
}List all the triggers and the related models
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 /automation/triggers/ 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": [
{
"trigger": "text",
"model_name": "text",
"action_targets": {
"ANY_ADDITIONAL_PROPERTY": [
"text"
]
},
"context_fields": "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"
POST /automation/triggers/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 92
"trigger='text'&model_name='text'&action_targets={'ANY_ADDITIONAL_PROPERTY':['text']}"{
"trigger": "text",
"model_name": "text",
"action_targets": {
"ANY_ADDITIONAL_PROPERTY": [
"text"
]
},
"context_fields": "text"
}Trigger viewset
Token-based authentication with required prefix "Token"
A unique integer value identifying this rule.
GET /automation/triggers/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"trigger": "text",
"model_name": "text",
"action_targets": {
"ANY_ADDITIONAL_PROPERTY": [
"text"
]
},
"context_fields": "text"
}Trigger viewset
Token-based authentication with required prefix "Token"
A unique integer value identifying this rule.
PUT /automation/triggers/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 92
"trigger='text'&model_name='text'&action_targets={'ANY_ADDITIONAL_PROPERTY':['text']}"{
"trigger": "text",
"model_name": "text",
"action_targets": {
"ANY_ADDITIONAL_PROPERTY": [
"text"
]
},
"context_fields": "text"
}Trigger viewset
Token-based authentication with required prefix "Token"
A unique integer value identifying this rule.
No response body
No content
DELETE /automation/triggers/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
Trigger viewset
Token-based authentication with required prefix "Token"
A unique integer value identifying this rule.
PATCH /automation/triggers/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 92
"trigger='text'&model_name='text'&action_targets={'ANY_ADDITIONAL_PROPERTY':['text']}"{
"trigger": "text",
"model_name": "text",
"action_targets": {
"ANY_ADDITIONAL_PROPERTY": [
"text"
]
},
"context_fields": "text"
}Last updated

