ti-pote/docs/bruno/Devices/Register Device.bru
2026-03-27 11:03:09 +01:00

29 lines
369 B
Plaintext

meta {
name: Register Device
type: http
seq: 1
}
post {
url: {{baseUrl}}/devices
body: json
auth: bearer
}
auth:bearer {
token: {{accessToken}}
}
body:json {
{
"name": "Ti-Pote Simulator"
}
}
script:post-response {
if (res.status === 201) {
bru.setVar("deviceId", res.body.deviceId);
bru.setVar("deviceToken", res.body.token);
}
}