/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0 HTTP/1.1 200 OK
with following body:
{
"href": "/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0",
"links": [{
"rel": "base",
"href": "/api/customers/K0002/devices/base/ABCDEF012345"
}, {
"rel": "activation",
"href": "/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0/activate"
}, {
"rel": "extension",
"href": null
}],
"data": [{
"name": "port",
"value": "Port0"
}, {
"name": "bluetoothPin",
"value": "6130"
}, {
"name": "active",
"value": true
}, {
"name": "suppressLineno",
"value": "DEFAULT"
}, {
"name": "note",
"value": null
}]
}
/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0 HTTP/1.1 404 Not Found with following body:
{
"described_by": "http://api.nfon.net/probs/device-not-found",
"title": "Device not found",
"detail": "Device with unique identifier Port0 has not been found"
}
/api/customers/K0404/devices/base/ABCDEF012345/handsets/Port0 HTTP/1.1 404 Not Found {
"described_by": "http://api.nfon.net/probs/customer-not-found",
"title": "Customer not found",
"detail": "Customer with identifier K0404 has not been found"
}
/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0 HTTP/1.1 403 Forbidden with following body:
{
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0002]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0 HTTP/1.1 200 OK
with following body:
{
"href": "/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0",
"links": [{
"rel": "base",
"href": "/api/customers/K0002/devices/base/ABCDEF012345"
}, {
"rel": "activation",
"href": "/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0/activate"
}],
"data": [{
"name": "port",
"value": "Port0"
}, {
"name": "bluetoothPin",
"value": "6130"
}, {
"name": "active",
"value": true
}, {
"name": "sipUsername",
"value": "K0002"
}]
}
/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0 HTTP/1.1 200 OK
with following body:
{
"href": "/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0",
"links": [{
"rel": "base",
"href": "/api/customers/K0002/devices/base/ABCDEF012345"
}, {
"rel": "activation",
"href": "/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0/activate"
}],
"data": [{
"name": "port",
"value": "Port0"
}, {
"name": "bluetoothPin",
"value": "6130"
}, {
"name": "active",
"value": true
}, {
"name": "sipUsername",
"value": "K0002"
}, {
"name": "sipSecret",
"value": "kSIzxm76EE2"
}]
}
/api/customers/K0003/devices/base/ABCDEF012345/handsets/Port0 HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/devices/base/ABCDEF012345/handsets/Port0 HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}