Skip to main content
POST
/
devices
/
batch
/
usagelimit
Batch update device usage limits
curl --request POST \
  --url https://dashboard.hologram.io/api/1/devices/batch/usagelimit \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "deviceids": [
    123
  ],
  "datathreshold": 123,
  "overagelimit": 123,
  "smslimit": 123
}
'
{
  "success": true,
  "data": {
    "jobid": 123,
    "preview": true,
    "valid_tasks": [
      {}
    ]
  }
}

Authorizations

Authorization
string
header
required

HTTP Basic authentication using API keys. Set the username to apikey and the password to your API key. You can find your API key on the Hologram Dashboard under Account Settings.

Body

application/json
deviceids
integer[]
required

List of device IDs to update

datathreshold
number

Data usage alert threshold in bytes (-1 for no limit)

overagelimit
number

Data overage limit in bytes (-1 for no limit)

smslimit
number

SMS limit (-1 for no limit)

Response

OK

success
boolean

Indicates whether the request was successful.

Example:

true

data
object