/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0/activate
using application/json; charset=UTF-8 {
"data": [{
"name": "active",
"value": false
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0/activate
using application/json; charset=UTF-8 {
"data": [{
"name": "active",
"value": true
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/devices/base/ABCDEF012345/handsets/404/activate
using application/json; charset=UTF-8 {
"data": [{
"name": "active",
"value": true
}]
}
Then I should receive HTTP/1.1 404 Not Found
{
"title": "Device not found",
"detail": "Device with unique identifier 404 has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0002/devices/base/01-23-45-67-89/handsets/ab/activate
using application/json; charset=UTF-8 {
"data": [{
"name": "active",
"value": true
}]
}
Then I should receive HTTP/1.1 404 Not Found
{
"title": "Device not found",
"detail": "Device with unique identifier ab has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0404/devices/base/ABCDEF012345/handsets/Port0/activate
using application/json; charset=UTF-8 {
"data": [{
"name": "active",
"value": true
}]
}
Then I should receive HTTP/1.1 404 Not Found
{
"title": "Customer not found",
"detail": "Customer with identifier K0404 has not been found",
"described_by": "http://api.nfon.net/probs/customer-not-found"
}
/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port0/activate
using application/json; charset=UTF-8 {
"data": [{
"name": "active",
"value": true
}]
}
Then I should get HTTP/1.1 404 Not Found with body
{
"title": "Device not found",
"detail": "Device with unique identifier Port0 has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0003/devices/base/ABCDEF012345/handsets/Port0/activate
using application/json; charset=UTF-8 {
"data": [{
"name": "active",
"value": true
}]
}
Then I should get HTTP/1.1 400 Bad Request with body
{
"title": "Validation error",
"detail": "Could not create or update resource due to constraint violations",
"errors": [{
"message": "Customer contract type does not allow to add more Devices"
}],
"described_by": "http://api.nfon.net/probs/validation-error"
}
/api/customers/K0003/devices/base/ABCDEF012345/handsets/Port0/activate 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/activate 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"
}