/api/customers/K0002/targets/queue-services/345/members/698 application/json; charset=UTF-8{
"data": [{
"name": "penalty",
"value": 8
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/queue-services/345/members/698 HTTP/1.1 200 OK {
"href": "/api/customers/K0002/targets/queue-services/345/members/698",
"data": [{
"name": "penalty",
"value": 8
}]
}
/api/customers/K0002/targets/queue-services/345/members/698 application/json; charset=UTF-8{
"data": [{
"name": "penalty",
"value": 13
}]
}
Then I should receive HTTP/1.1 400 Bad Request {
"errors": [{
"message": "must be less than or equal to 9",
"path": "penalty",
"value": "13"
}]
}
/api/customers/K0002/targets/queue-services/345/members/698 application/json; charset=UTF-8{
"data": [{
"name": "displayName",
"value": "new name"
}]
}
Then I should receive HTTP/1.1 400 Bad Request {
"errors": [{
"message": "A readonly field is being modified with different value.",
"path": "displayName",
"value": "new name"
}]
}
/api/customers/K0002/targets/queue-services/345/members/698 application/json; charset=UTF-8{
"data": [{
"name": "extensionNumber",
"value": "999"
}]
}
Then I should receive HTTP/1.1 400 Bad Request {
"errors": [{
"message": "A readonly field is being modified with different value.",
"path": "extensionNumber",
"value": "999"
}]
}
/api/customers/K0002/targets/queue-services/345/members/698 application/json; charset=UTF-8{
"links": [{
"rel": "phoneExtension",
"href": "/api/customers/K0002/targets/phone-extensions/712"
}]
}
Then I should receive HTTP/1.1 400 Bad Request {
"errors": [{
"message": "A readonly field is being modified with different value.",
"path": "phoneExtension",
"value": "/api/customers/K0002/targets/phone-extensions/712"
}]
}
/api/customers/K0002/targets/queue-services/345/members/404 application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 404 Not Found {
"title": "Queue member not found",
"detail": "Queue member with extension number 404 not found",
"described_by": "http://api.nfon.net/probs/queue-member-not-found"
}
/api/customers/K0002/targets/queue-services/404/members/698 application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 404 Not Found {
"title": "Queue not found",
"detail": "Queue with serviceNumber 404 not found",
"described_by": "http://api.nfon.net/probs/queue-not-found"
}
/api/customers/K404/targets/queue-services/345/members/698 application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 404 Not Found {
"title": "Customer not found",
"detail": "Customer with identifier K404 has not been found",
"described_by": "http://api.nfon.net/probs/customer-not-found"
}
/api/customers/K0003/targets/queue-services/345/members/698 application/json; charset=UTF-8{}
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/queue-services/345/members/698 application/json; charset=UTF-8{}
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/queue-services/345/members/698 application/json; charset=UTF-8{}
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"
}