All pages
Powered by GitBook
1 of 1

Set association name

post

Set the name of the association. To set the name of devices owned by the network, use /device/set-name.

Authorizations
Body
codestringOptional
device_namestringOptional

Name of the device

Responses
200Success
application/json
post
POST /device/set-association-name HTTP/1.1
Host: api.bringyour.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "code": "text",
  "device_name": "text"
}
200Success
{
  "error": {
    "message": "text"
  }
}