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

Automation

get

Action viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
actionstring · enumOptional
  • set - Set
Possible values:
content_typeintegerOptional
fieldstringOptional
formatstring · enumOptionalPossible values:
idintegerOptional
limitintegerOptional

Number of results to return per page.

object_idintegerOptional
object_slugstringOptional
offsetintegerOptional

The initial index from which to return the results.

orderingstringOptional

Which field to use when ordering the results.

priorityintegerOptional
ruleintegerOptional
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/automation/action/
GET /automation/action/ 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,
      "rule": 1,
      "priority": 1,
      "action": "set",
      "content_type": 1,
      "object_id": 1,
      "object_slug": "text",
      "field": "text",
      "value": null
    }
  ]
}
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
ruleinteger · nullableOptional
priorityintegerOptional
actionstring · enumRequired
  • set - Set
Possible values:
content_typeinteger · nullableOptional
object_idinteger · int64 · max: 9223372036854776000 · nullableOptional
object_slugstring · max: 100 · nullableOptional
fieldstring · max: 255Required
valueanyRequired
Responses
201Success

This serialize class provide the API representation

idintegerRead-onlyRequired
ruleinteger · nullableOptional
priorityintegerOptional
actionstring · enumRequired
  • set - Set
Possible values:
content_typeinteger · nullableOptional
object_idinteger · int64 · max: 9223372036854776000 · nullableOptional
object_slugstring · max: 100 · nullableOptional
fieldstring · max: 255Required
valueanyRequired
post/automation/action/
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"
201Success
{
  "id": 1,
  "rule": 1,
  "priority": 1,
  "action": "set",
  "content_type": 1,
  "object_id": 1,
  "object_slug": "text",
  "field": "text",
  "value": null
}
get

Action viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this action.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
ruleinteger · nullableOptional
priorityintegerOptional
actionstring · enumRequired
  • set - Set
Possible values:
content_typeinteger · nullableOptional
object_idinteger · int64 · max: 9223372036854776000 · nullableOptional
object_slugstring · max: 100 · nullableOptional
fieldstring · max: 255Required
valueanyRequired
get/automation/action/{id}/
GET /automation/action/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "rule": 1,
  "priority": 1,
  "action": "set",
  "content_type": 1,
  "object_id": 1,
  "object_slug": "text",
  "field": "text",
  "value": null
}
put

Action viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this action.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
ruleinteger · nullableOptional
priorityintegerOptional
actionstring · enumRequired
  • set - Set
Possible values:
content_typeinteger · nullableOptional
object_idinteger · int64 · max: 9223372036854776000 · nullableOptional
object_slugstring · max: 100 · nullableOptional
fieldstring · max: 255Required
valueanyRequired
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
ruleinteger · nullableOptional
priorityintegerOptional
actionstring · enumRequired
  • set - Set
Possible values:
content_typeinteger · nullableOptional
object_idinteger · int64 · max: 9223372036854776000 · nullableOptional
object_slugstring · max: 100 · nullableOptional
fieldstring · max: 255Required
valueanyRequired
put/automation/action/{id}/
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"
200Success
{
  "id": 1,
  "rule": 1,
  "priority": 1,
  "action": "set",
  "content_type": 1,
  "object_id": 1,
  "object_slug": "text",
  "field": "text",
  "value": null
}
delete

Action viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this action.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/automation/action/{id}/
DELETE /automation/action/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

Action viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this action.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyOptional
ruleinteger · nullableOptional
priorityintegerOptional
actionstring · enumOptional
  • set - Set
Possible values:
content_typeinteger · nullableOptional
object_idinteger · int64 · max: 9223372036854776000 · nullableOptional
object_slugstring · max: 100 · nullableOptional
fieldstring · max: 255Optional
valueanyOptional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
ruleinteger · nullableOptional
priorityintegerOptional
actionstring · enumRequired
  • set - Set
Possible values:
content_typeinteger · nullableOptional
object_idinteger · int64 · max: 9223372036854776000 · nullableOptional
object_slugstring · max: 100 · nullableOptional
fieldstring · max: 255Required
valueanyRequired
patch/automation/action/{id}/
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"
200Success
{
  "id": 1,
  "rule": 1,
  "priority": 1,
  "action": "set",
  "content_type": 1,
  "object_id": 1,
  "object_slug": "text",
  "field": "text",
  "value": null
}
get

This class will define the view behavior

Args: viewsets ([OCSViewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
commentstringOptional
datestring · date-timeOptional
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.

schedulerintegerOptional
searchstringOptional

A search term.

statusintegerOptional
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/automation/history/
GET /automation/history/ 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,
      "scheduler": 1,
      "date": "2026-01-01T00:00:00.000Z",
      "status": 1,
      "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
schedulerintegerRequired
datestring · date-timeRead-onlyRequired
statusinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000Required
commentstring · max: 255Required
Responses
201Success

This serialize class provide the API representation

idintegerRead-onlyRequired
schedulerintegerRequired
datestring · date-timeRead-onlyRequired
statusinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000Required
commentstring · max: 255Required
post/automation/history/
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'"
201Success
{
  "id": 1,
  "scheduler": 1,
  "date": "2026-01-01T00:00:00.000Z",
  "status": 1,
  "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 history.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
schedulerintegerRequired
datestring · date-timeRead-onlyRequired
statusinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000Required
commentstring · max: 255Required
get/automation/history/{id}/
GET /automation/history/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "scheduler": 1,
  "date": "2026-01-01T00:00:00.000Z",
  "status": 1,
  "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 history.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
schedulerintegerRequired
datestring · date-timeRead-onlyRequired
statusinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000Required
commentstring · max: 255Required
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
schedulerintegerRequired
datestring · date-timeRead-onlyRequired
statusinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000Required
commentstring · max: 255Required
put/automation/history/{id}/
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'"
200Success
{
  "id": 1,
  "scheduler": 1,
  "date": "2026-01-01T00:00:00.000Z",
  "status": 1,
  "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 history.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/automation/history/{id}/
DELETE /automation/history/{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 history.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyOptional
schedulerintegerOptional
datestring · date-timeRead-onlyOptional
statusinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000Optional
commentstring · max: 255Optional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
schedulerintegerRequired
datestring · date-timeRead-onlyRequired
statusinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000Required
commentstring · max: 255Required
patch/automation/history/{id}/
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'"
200Success
{
  "id": 1,
  "scheduler": 1,
  "date": "2026-01-01T00:00:00.000Z",
  "status": 1,
  "comment": "text"
}
get

Rule viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
actionsinteger[]Optional
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.

priorityintegerOptional
searchstringOptional

A search term.

triggerstring · enumOptional
  • inventory_received - Inventory Received
  • user_login - User Login
  • netdevice_received - Netdevice Received
Possible values:
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/automation/rule/
GET /automation/rule/ 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,
      "priority": 1,
      "description": "text",
      "trigger": "inventory_received",
      "enabled": true,
      "logic": null,
      "break_on_match": true,
      "actions": [
        1
      ]
    }
  ]
}
post

Handle post request, suitable for single and multi creation

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

Returns: [type]: [description]

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
priorityintegerOptional
descriptionstring · max: 255 · nullableOptional
triggerstring · enumRequired
  • inventory_received - Inventory Received
  • user_login - User Login
  • netdevice_received - Netdevice Received
Possible values:
enabledbooleanOptional
logicanyRequired
break_on_matchbooleanOptional
actionsinteger[]Required
Responses
201Success

This serialize class provide the API representation

idintegerRead-onlyRequired
priorityintegerOptional
descriptionstring · max: 255 · nullableOptional
triggerstring · enumRequired
  • inventory_received - Inventory Received
  • user_login - User Login
  • netdevice_received - Netdevice Received
Possible values:
enabledbooleanOptional
logicanyRequired
break_on_matchbooleanOptional
actionsinteger[]Required
post/automation/rule/
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]"
201Success
{
  "id": 1,
  "priority": 1,
  "description": "text",
  "trigger": "inventory_received",
  "enabled": true,
  "logic": null,
  "break_on_match": true,
  "actions": [
    1
  ]
}
get

Rule viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this rule.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
priorityintegerOptional
descriptionstring · max: 255 · nullableOptional
triggerstring · enumRequired
  • inventory_received - Inventory Received
  • user_login - User Login
  • netdevice_received - Netdevice Received
Possible values:
enabledbooleanOptional
logicanyRequired
break_on_matchbooleanOptional
actionsinteger[]Required
get/automation/rule/{id}/
GET /automation/rule/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "priority": 1,
  "description": "text",
  "trigger": "inventory_received",
  "enabled": true,
  "logic": null,
  "break_on_match": true,
  "actions": [
    1
  ]
}
put

Rule viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this rule.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
priorityintegerOptional
descriptionstring · max: 255 · nullableOptional
triggerstring · enumRequired
  • inventory_received - Inventory Received
  • user_login - User Login
  • netdevice_received - Netdevice Received
Possible values:
enabledbooleanOptional
logicanyRequired
break_on_matchbooleanOptional
actionsinteger[]Required
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
priorityintegerOptional
descriptionstring · max: 255 · nullableOptional
triggerstring · enumRequired
  • inventory_received - Inventory Received
  • user_login - User Login
  • netdevice_received - Netdevice Received
Possible values:
enabledbooleanOptional
logicanyRequired
break_on_matchbooleanOptional
actionsinteger[]Required
put/automation/rule/{id}/
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]"
200Success
{
  "id": 1,
  "priority": 1,
  "description": "text",
  "trigger": "inventory_received",
  "enabled": true,
  "logic": null,
  "break_on_match": true,
  "actions": [
    1
  ]
}
delete

Rule viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this rule.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/automation/rule/{id}/
DELETE /automation/rule/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

Rule viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this rule.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyOptional
priorityintegerOptional
descriptionstring · max: 255 · nullableOptional
triggerstring · enumOptional
  • inventory_received - Inventory Received
  • user_login - User Login
  • netdevice_received - Netdevice Received
Possible values:
enabledbooleanOptional
logicanyOptional
break_on_matchbooleanOptional
actionsinteger[]Optional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
priorityintegerOptional
descriptionstring · max: 255 · nullableOptional
triggerstring · enumRequired
  • inventory_received - Inventory Received
  • user_login - User Login
  • netdevice_received - Netdevice Received
Possible values:
enabledbooleanOptional
logicanyRequired
break_on_matchbooleanOptional
actionsinteger[]Required
patch/automation/rule/{id}/
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]"
200Success
{
  "id": 1,
  "priority": 1,
  "description": "text",
  "trigger": "inventory_received",
  "enabled": true,
  "logic": null,
  "break_on_match": true,
  "actions": [
    1
  ]
}
get

This class will define the view behavior

Args: viewsets ([OCSViewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
activebooleanOptional
day_of_monthintegerOptional
day_of_weekintegerOptional
descriptionstringOptional
formatstring · enumOptionalPossible values:
hourstring · timeOptional
is_protectedbooleanOptional
last_executionstring · 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.

recurrencestring · enumOptional
  • hourly - hourly
  • daily - daily
  • weekly - weekly
  • monthly - monthly
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/automation/scheduler/
GET /automation/scheduler/ 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",
      "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
    }
  ]
}
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: 100Required
descriptionstring · max: 1024Required
activebooleanRequired
recurrencestring · enumOptional
  • hourly - hourly
  • daily - daily
  • weekly - weekly
  • monthly - monthly
Possible values:
last_executionstring · date-time · nullableOptional
hourstring · time · nullableOptional
day_of_weekinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
day_of_monthinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
is_protectedbooleanOptional
Responses
201Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 100Required
descriptionstring · max: 1024Required
activebooleanRequired
recurrencestring · enumOptional
  • hourly - hourly
  • daily - daily
  • weekly - weekly
  • monthly - monthly
Possible values:
last_executionstring · date-time · nullableOptional
hourstring · time · nullableOptional
day_of_weekinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
day_of_monthinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
is_protectedbooleanOptional
post/automation/scheduler/
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"
201Success
{
  "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
}
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 scheduler.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 100Required
descriptionstring · max: 1024Required
activebooleanRequired
recurrencestring · enumOptional
  • hourly - hourly
  • daily - daily
  • weekly - weekly
  • monthly - monthly
Possible values:
last_executionstring · date-time · nullableOptional
hourstring · time · nullableOptional
day_of_weekinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
day_of_monthinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
is_protectedbooleanOptional
get/automation/scheduler/{id}/
GET /automation/scheduler/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "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
}
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 scheduler.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 100Required
descriptionstring · max: 1024Required
activebooleanRequired
recurrencestring · enumOptional
  • hourly - hourly
  • daily - daily
  • weekly - weekly
  • monthly - monthly
Possible values:
last_executionstring · date-time · nullableOptional
hourstring · time · nullableOptional
day_of_weekinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
day_of_monthinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
is_protectedbooleanOptional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 100Required
descriptionstring · max: 1024Required
activebooleanRequired
recurrencestring · enumOptional
  • hourly - hourly
  • daily - daily
  • weekly - weekly
  • monthly - monthly
Possible values:
last_executionstring · date-time · nullableOptional
hourstring · time · nullableOptional
day_of_weekinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
day_of_monthinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
is_protectedbooleanOptional
put/automation/scheduler/{id}/
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"
200Success
{
  "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
}
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 scheduler.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/automation/scheduler/{id}/
DELETE /automation/scheduler/{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 scheduler.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyOptional
namestring · max: 100Optional
descriptionstring · max: 1024Optional
activebooleanOptional
recurrencestring · enumOptional
  • hourly - hourly
  • daily - daily
  • weekly - weekly
  • monthly - monthly
Possible values:
last_executionstring · date-time · nullableOptional
hourstring · time · nullableOptional
day_of_weekinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
day_of_monthinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
is_protectedbooleanOptional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 100Required
descriptionstring · max: 1024Required
activebooleanRequired
recurrencestring · enumOptional
  • hourly - hourly
  • daily - daily
  • weekly - weekly
  • monthly - monthly
Possible values:
last_executionstring · date-time · nullableOptional
hourstring · time · nullableOptional
day_of_weekinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
day_of_monthinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
is_protectedbooleanOptional
patch/automation/scheduler/{id}/
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"
200Success
{
  "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
}
get

List all the triggers and the related models

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/automation/triggers/
GET /automation/triggers/ 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": [
    {
      "trigger": "text",
      "model_name": "text",
      "action_targets": {
        "ANY_ADDITIONAL_PROPERTY": [
          "text"
        ]
      },
      "context_fields": "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
triggerstringRequired
model_namestringRequired
context_fieldsstringRead-onlyRequired
Responses
201Success
triggerstringRequired
model_namestringRequired
context_fieldsstringRead-onlyRequired
post/automation/triggers/
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']}"
201Success
{
  "trigger": "text",
  "model_name": "text",
  "action_targets": {
    "ANY_ADDITIONAL_PROPERTY": [
      "text"
    ]
  },
  "context_fields": "text"
}
get

Trigger viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this rule.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success
triggerstringRequired
model_namestringRequired
context_fieldsstringRead-onlyRequired
get/automation/triggers/{id}/
GET /automation/triggers/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "trigger": "text",
  "model_name": "text",
  "action_targets": {
    "ANY_ADDITIONAL_PROPERTY": [
      "text"
    ]
  },
  "context_fields": "text"
}
put

Trigger viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this rule.

Query parameters
formatstring · enumOptionalPossible values:
Body
triggerstringRequired
model_namestringRequired
context_fieldsstringRead-onlyRequired
Responses
200Success
triggerstringRequired
model_namestringRequired
context_fieldsstringRead-onlyRequired
put/automation/triggers/{id}/
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']}"
200Success
{
  "trigger": "text",
  "model_name": "text",
  "action_targets": {
    "ANY_ADDITIONAL_PROPERTY": [
      "text"
    ]
  },
  "context_fields": "text"
}
delete

Trigger viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this rule.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/automation/triggers/{id}/
DELETE /automation/triggers/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

Trigger viewset

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this rule.

Query parameters
formatstring · enumOptionalPossible values:
Body
triggerstringOptional
model_namestringOptional
context_fieldsstringRead-onlyOptional
Responses
200Success
triggerstringRequired
model_namestringRequired
context_fieldsstringRead-onlyRequired
patch/automation/triggers/{id}/
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']}"
200Success
{
  "trigger": "text",
  "model_name": "text",
  "action_targets": {
    "ANY_ADDITIONAL_PROPERTY": [
      "text"
    ]
  },
  "context_fields": "text"
}

Last updated