OnTrak API documentation
# Install the command line client
$ pip install coreapi-cli
activate
create
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
mac_addresses required | An array of mac-addreses for OnTrak devices |
# Load the schema document
$ coreapi get https://ontrak.cloud/api/v1/docs/
# Interact with the API endpoint
$ coreapi action activate create -p mac_addresses=...
cloud-files
create
Return an array of OnTrak devices with specified mac_addresses. Act like OnTrak endpoint except file and is_expired fields will be included for each OnTrak
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
mac_addresses required | An array of mac-addreses for OnTrak devices |
# Load the schema document
$ coreapi get https://ontrak.cloud/api/v1/docs/
# Interact with the API endpoint
$ coreapi action cloud-files create -p mac_addresses=...
email-mailgun-route
# Load the schema document
$ coreapi get https://ontrak.cloud/api/v1/docs/
# Interact with the API endpoint
$ coreapi action email-mailgun-route create
file-delete
# Load the schema document
$ coreapi get https://ontrak.cloud/api/v1/docs/
# Interact with the API endpoint
$ coreapi action file-delete delete
file-upload
create
Upload and save file with relation to spicific OnTrak
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
file required | |
ontrak required | MAC address for appropriate OnTrak device |
filename required |
# Load the schema document
$ coreapi get https://ontrak.cloud/api/v1/docs/
# Interact with the API endpoint
$ coreapi action file-upload create -p file=... -p ontrak=... -p filename=...
ontrak
create
Returns an array of OnTrak devices with specified mac_addresses. Each of them has expiration date and mac_address fields. If there is no OnTrak devices with specified mac_address, it will be created and included into the response.
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
mac_addresses required | An array of mac-addreses for OnTrak devices |
# Load the schema document
$ coreapi get https://ontrak.cloud/api/v1/docs/
# Interact with the API endpoint
$ coreapi action ontrak create -p mac_addresses=...