/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab/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/operator-panel/01-23-45-67-89-ab/activate
using application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "active",
"value": true
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/devices/unprovisioned-sip/ABCDEF012345/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 ABCDEF012345 has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0002/devices/xcapi/ABCDEF012345/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 ABCDEF012345 has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0002/devices/standard/ABCDEF012345/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 ABCDEF012345 has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0002/devices/fmc/ABCDEF012345/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 ABCDEF012345 has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0002/devices/base/ABCDEF012345/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 ABCDEF012345 has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-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 01-23-45-67-89-ab has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0002/devices/media-gateway/123456789ABC/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 123456789ABC has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab/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 01-23-45-67-89-ab has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0003/devices/operator-panel/01-23-45-67-89-ab/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/K0002/devices/base/01-23-45-67-89-ab/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 01-23-45-67-89-ab has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0002/devices/not-existing-type/01-23-45-67-89-ab/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 01-23-45-67-89-ab has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0404/devices/operator-panel/01-23-45-67-89-ab/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": "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/operator-panel/01-23-45-67-89-ab/activate
using application/json; charset=UTF-8 {
"data": [{
"name": "active",
"value": true
}]
}
Then I should get HTTP/1.1 403 Forbidden with body
{
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0002]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/devices/operator-panel/01-23-45-67-89-ab/activate application/json; charset=UTF-8 {
"data": [{
"name": "active",
"value": true
}]
}
Then I should receive 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/operator-panel/01-23-45-67-89-ab/activate application/json; charset=UTF-8 {
"data": [{
"name": "active",
"value": true
}]
}
Then I should receive 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"
}