Octopus Online API (0.1.7)

Download OpenAPI specification:

Th.P. Klostermann: thomas@elfii.nl

REST API for Octopus Online

alarm

Operations on Alarms

Get a list of Compactor Alarm templates

Authorizations:
openId

Responses

Response samples

Content type
application/json
{
  • "templates": [
    ]
}

compactor

Operations on Waste Compactors

Get a list of Compactor objects

Authorizations:
openId
query Parameters
settings
boolean
Default: false

Include settings in each Compactor object.

details
boolean
Default: false

Include scheduled service moments and some extra metadata in each Compactor object.

Responses

Response samples

Content type
application/json
{
  • "compactors": [
    ]
}

Get a single Compactor object

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

Responses

Response samples

Content type
application/json
{
  • "compactor": {
    }
}

Get a List of Compactor Fill percentages

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

query Parameters
start_at
integer <int64>
Example: start_at=1593554400

Retrieves only Fills since the given Unix Timestamp.

When set to -1 the response will be a logical system-decided range consisting of max 4 sessions or 28 days.

When no query parameters are set the response will be Fills of the last 28 days (2419200 seconds).

end_at
integer <int64>
Example: end_at=1593554400

Retrieves only Fills up to the given Unix Timestamp. When not set, all Fills up to the current time are selected, limited by limit.

sanitize
boolean
Example: sanitize=true

When Sanitize is true we receive fills capped, when false we receive them uncapped (default)

extensive
boolean
Example: extensive=true

When extensive is true the response also includes the number of cycles and a number based on pressure, if present

limit
integer

Only receive a maximum of limit Fills

Responses

Response samples

Content type
application/json
{
  • "fills": [
    ]
}

Get a List of Compactor Events

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

query Parameters
start_at
integer <int64>
Example: start_at=1593554400

Retrieves only Events since the given Unix Timestamp

end_at
integer <int64>
Example: end_at=1593554400

Retrieves only Events up to the given Unix Timestamp

limit
integer

Only receive a maximum of limit Events

Responses

Response samples

Content type
application/json
{
  • "events": [
    ]
}

Get a List of Compactor Sessions

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

query Parameters
start_at
integer <int64>
Example: start_at=1593554400

Retrieves only Sessions since the given Unix Timestamp

limit
integer

Only receive a maximum of limit Sessions

sanitize
boolean

Maximize percentages, only show 100% when full

Responses

Response samples

Content type
application/json
{
  • "sessions": [
    ]
}

Enter a manual Measurement on a Compactor for a specific Session

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

Request Body schema: application/json
required
session_id
integer <int64>

ID of the session for this measurement

mass_corrected
number

Manually corrected mass in kilos

Responses

Request samples

Content type
application/json
{
  • "session_id": 0,
  • "mass_corrected": 44
}

Response samples

Content type
application/json
{
  • "error": "string"
}

Get a List of set Alarms on a Compactor

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

Responses

Response samples

Content type
application/json
{
  • "actions": [
    ]
}

Set a new Alarm on a Compactor

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

Request Body schema: application/json
required
object (AlarmActionCompactor)

Responses

Request samples

Content type
application/json
Example
{
  • "action": {
    }
}

Response samples

Content type
application/json
{
  • "error": "string"
}

Get an Alarm on a Compactor

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

alarm_id
required
string

ID of the Alarm

Responses

Response samples

Content type
application/json
{
  • "action": {
    }
}

Delete an Alarm on a Compactor

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

alarm_id
required
string

ID of the Alarm

Responses

Response samples

Content type
application/json
{
  • "error": "string"
}

Updating an Alarm on a specific Compactor

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

alarm_id
required
string

ID of the Alarm

Request Body schema: application/json
required
object (AlarmActionCompactor)

Responses

Request samples

Content type
application/json
{
  • "action": {
    }
}

Response samples

Content type
application/json
{
  • "error": "string"
}

Updating Settings for a specific Compactor

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

Request Body schema: application/json
required
object (CompactorSettings)

Settings for a Compactor

Responses

Request samples

Content type
application/json
{
  • "settings": {
    }
}

Response samples

Content type
application/json
{
  • "error": "string"
}

Updating Customer for a specific Compactor

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

Request Body schema: application/json
required
object (Customer)

A customer with an optional address

Responses

Request samples

Content type
application/json
{
  • "customer": {
    }
}

Response samples

Content type
application/json
{
  • "error": "string"
}

Updating Location for a specific Compactor

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

Request Body schema: application/json
required
object (Location)

An address of a location

Responses

Request samples

Content type
application/json
{
  • "address": {
    }
}

Response samples

Content type
application/json
{
  • "error": "string"
}

Updating Name for a specific Compactor

Authorizations:
openId
path Parameters
id
required
string

ID of the Compactor

Request Body schema: application/json
required
name
string

Name of the Compactor object, defined by the user

Responses

Request samples

Content type
application/json
{
  • "name": "Testcompactor"
}

Response samples

Content type
application/json
{
  • "error": "string"
}

Get the profile of the current user

Authorizations:
openId

Responses

Response samples

Content type
application/json
{
  • "profile": {
    }
}