-
Notifications
You must be signed in to change notification settings - Fork 0
Devices
Vadim Sokoltsov edited this page Apr 6, 2017
·
1 revision
Authorization required
Creates new device to authorization
-
token- type:string- device authorizations token
token - can't be blank
POST /api/v1/devices HTTP/1.1
Host: dockerhost:3000
Content-Type: application/json
uprogresstoken: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MX0.DeefNqb69orzcJu8RIq9ClD4ZPTOF1R6yC1ABiBB6BY
Cache-Control: no-cache
{
"device": {
"token": "12345"
}
}{
"success": true
}{
"errors": {
"token": [
"can't be blank"
]
}
}