Skip to main content
POST
/
devices
/
tags
Create a tag
curl --request POST \
  --url https://dashboard.hologram.io/api/1/devices/tags \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "deviceids": [
    123
  ]
}
'
{
  "success": true,
  "data": {
    "tags": [
      {
        "id": 123,
        "name": "<string>",
        "deviceids": [
          123
        ]
      }
    ]
  }
}

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
name
string
required

Name for the new tag

deviceids
integer[]

Device IDs to link to the new tag

Response

OK

success
boolean

Indicates whether the request was successful.

Example:

true

data
object