Create adopt code
post
Creates a code to adopt a device. The adopt code is valid for a limited time.
Body
device_namestringOptional
Name of the device that will be shared to the adopter
device_specstringOptional
Responses
200Success
application/json
post
POST /device/create-adopt-code HTTP/1.1
Host: api.bringyour.com
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"device_name": "text",
"device_spec": "text"
}
200Success
{
"adopt_code": "text",
"adopt_secret": "text",
"duration_minutes": 1,
"error": {
"message": "text"
}
}
Was this helpful?