/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 24
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/targets/group-services/345/timeout
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 24
}]
}
/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 24
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/targets/group-services/345/timeout
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 24
}]
}
/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/NO_ACTION"
}],
"data": [{
"name": "timeoutDelay",
"value": 0
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/targets/group-services/345/timeout
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/NO_ACTION"
}],
"data": [{
"name": "timeoutDelay",
"value": 0
}]
}
/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": -13
}]
}
Then I should receive HTTP/1.1 400 Bad Request
and application/api-problem+json
with following body:
{
"title": "Validation error",
"detail": "Could not create or update resource due to constraint violations",
"errors": [{
"message": "must be greater than or equal to 0",
"path": "timeout",
"value": "-13"
}]
}
/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 0
}]
}
Then I should receive HTTP/1.1 400 Bad Request
and application/api-problem+json
with following body:
{
"title": "Validation error",
"detail": "Could not create or update resource due to constraint violations",
"errors": [{
"message": "TimeoutDelay need to be greater than 0 when destinationOnTimeout is provided"
}]
}
/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/NO_ACTION"
}],
"data": [{
"name": "timeoutDelay",
"value": 24
}]
}
Then I should receive HTTP/1.1 400 Bad Request
{
"title": "Validation error",
"detail": "Could not create or update resource due to constraint violations",
"errors": [{
"message": "When destinationOnTimeout is not provided, TimeoutDelay need to be 0"
}]
}
/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 0
}]
}
Then I should receive HTTP/1.1 400 Bad Request
With following body:
{
"title": "Validation error",
"detail": "Could not create or update resource due to constraint violations",
"errors": [{
"message": "TimeoutDelay need to be greater than 0 when destinationOnTimeout is provided"
}]
}
/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/HANGUP"
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/targets/group-services/345/timeout
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/HANGUP"
}],
"data": [{
"name": "timeoutDelay",
"value": 2
}]
}
/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "timeoutDelay",
"value": 4
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/targets/group-services/345/timeout
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 4
}]
}
/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/REPEAT"
}],
"data": [{
"name": "timeoutDelay",
"value": 4
}]
}
Then I should receive HTTP/1.1 400 Bad Request
With following body:
{
"title": "Validation error",
"detail": "Could not create or update resource due to constraint violations",
"errors": [{
"message": "This destination cannot be assigned to this service"
}]
}
/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0003/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 4
}]
}
Then I should receive HTTP/1.1 400 Bad Request
With following body:
{
"errors": [{
"message": "Destination On Timeout must belong to the owner of Group Service",
"path": "destinationOnTimeout"
}]
}
/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0003/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 4
}]
}
Then I should receive HTTP/1.1 403 Forbidden
With following body:
{
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0002/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/phone-extensions/404"
}],
"data": [{
"name": "timeoutDelay",
"value": 4
}]
}
Then I should receive HTTP/1.1 404 Not Found
With following body:
{
"detail": "Extension with extension number 404 has not been found",
"title": "Extension not found",
"described_by": "http://api.nfon.net/probs/extension-not-found"
}
/api/customers/K0002/targets/group-services/404/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 24
}]
}
Then I should receive HTTP/1.1 404 Not Found {
"title": "Group not found",
"detail": "Group with serviceNumber 404 not found",
"described_by": "http://api.nfon.net/probs/group-not-found"
}
/api/customers/K0404/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 24
}]
}
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/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 24
}]
}
Then I should receive HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0002]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 24
}]
}
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/targets/group-services/345/timeout
as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/BUSY"
}],
"data": [{
"name": "timeoutDelay",
"value": 24
}]
}
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"
}