/api/customers/K0002/targets/skill-services/345/members/698 application/json; charset=UTF-8{
"data": [{
"name": "skillLevel",
"value": 8
}, {
"name": "enabled",
"value": false
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/skill-services/345/members/698 HTTP/1.1 200 OK application/vnd.collection.next+json {
"href": "/api/customers/K0002/targets/skill-services/345/members/698",
"data": [{
"name": "skillLevel",
"value": 8
}, {
"name": "enabled",
"value": false
}]
}
/api/customers/K0002/targets/skill-services/345/members/698 application/json; charset=UTF-8{
"data": [{
"name": "skillLevel",
"value": 13
}]
}
Then I should receive HTTP/1.1 400 Bad Request application/api-problem+json {
"title": "Validation error",
"detail": "Could not create or update resource due to constraint violations",
"errors": [{
"message": "skillLevel should be between 1 and 10",
"path": "skillLevel",
"value": 13
}],
"described_by": "http://api.nfon.net/probs/validation-error"
}
/api/customers/K0002/targets/skill-services/345/members/698 application/json; charset=UTF-8{
"data": [{
"name": "extensionDisplayName",
"value": "new name"
}]
}
Then I should receive HTTP/1.1 400 Bad Request application/api-problem+json {
"title": "Validation error",
"detail": "Could not create or update resource due to constraint violations",
"errors": [{
"message": "A readonly field is being modified with different value.",
"path": "extensionDisplayName",
"value": "new name"
}],
"described_by": "http://api.nfon.net/probs/validation-error"
}
/api/customers/K0002/targets/skill-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 application/api-problem+json {
"title": "Validation error",
"detail": "Could not create or update resource due to constraint violations",
"errors": [{
"message": "A readonly field is being modified with different value.",
"path": "phoneExtension",
"value": "/api/customers/K0002/targets/phone-extensions/712"
}],
"described_by": "http://api.nfon.net/probs/validation-error"
}
/api/customers/K0002/targets/skill-services/345/members/404 application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 404 Not Found application/api-problem+json {
"title": "Skill member not found",
"detail": "Skill member with extension number 404 not found",
"described_by": "http://api.nfon.net/probs/skill-member-not-found"
}
/api/customers/K0002/targets/skill-services/404/members/698 application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 404 Not Found application/api-problem+json {
"title": "Skill service not found",
"detail": "Skill service with serviceNumber 404 not found",
"described_by": "http://api.nfon.net/probs/skill-service-not-found"
}
/api/customers/K404/targets/skill-services/345/members/698 application/json; charset=UTF-8{}
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"
}
/api/customers/K0003/targets/skill-services/345/members/123 application/json; charset=UTF-8{
"links": [{
"rel": "phoneExtension",
"href": "/api/customers/K0002/targets/phone-extensions/712"
}]
}
Then I should receive HTTP/1.1 403 Forbidden application/api-problem+json {
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/targets/skill-services/345/members/123 application/json; charset=UTF-8{
"links": [{
"rel": "phoneExtension",
"href": "/api/customers/K0003/targets/phone-extensions/712"
}]
}
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/skill-services/345/members/123 application/json; charset=UTF-8{
"links": [{
"rel": "phoneExtension",
"href": "/api/customers/K0003/targets/phone-extensions/712"
}]
}
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"
}