/api/customers/K0002/options/external-numbers application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "allowed",
"value": false
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/phone-extensions/17/call-forwards {
"href": "/api/customers/K0002/targets/phone-extensions/17/call-forwards",
"data": [{
"name": "externalNumbersEnabled",
"value": false
}]
}
/api/customers/K0002/targets/phone-extensions/17/call-forwards/DEFAULT {
"href": "/api/customers/K0002/targets/phone-extensions/17/call-forwards/DEFAULT",
"links": [{
"rel": "current",
"href": "/api/customers/K0002/targets/external/004966123456"
}, {
"rel": "available",
"href": "/api/customers/K0002/targets/phone-extensions/17/call-forwards/DEFAULT/available"
}],
"data": [{
"name": "name",
"value": "Phone Book"
}, {
"name": "type",
"value": "PHONEBOOK"
}, {
"name": "extensionNumber",
"value": "+49 (66) 1234-56"
}]
}
/api/customers/K0002/options/external-numbers application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "allowed",
"value": true
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/phone-extensions/17/call-forwards {
"href": "/api/customers/K0002/targets/phone-extensions/17/call-forwards",
"data": [{
"name": "externalNumbersEnabled",
"value": true
}]
}
/api/customers/K0002/targets/phone-extensions/17/call-forwards/DEFAULT {
"href": "/api/customers/K0002/targets/phone-extensions/17/call-forwards/DEFAULT",
"data": [{
"name": "name",
"value": "Phone Book"
}, {
"name": "type",
"value": "PHONEBOOK"
}, {
"name": "extensionNumber",
"value": "+49 (66) 1234-56"
}]
}
/api/customers/K404/options/external-numbers application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "allowed",
"value": false
}]
}
Then I should receive HTTP/1.1 404 Not Found application/api-problem+json {
"title": "Customer not found",
"detail": "Customer with identifier K404 has not been found",
"described_by": "http://api.nfon.net/probs/customer-not-found"
}