/api/customers/K0002/contracts/800D0000003ARnKIAW with application/json; charset=UTF-8
and body:
{
"data": [{
"name": "name",
"value": "New Contract"
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/contracts/800D0000003ARnKIAW
returns HTTP/1.1 200 OK
with following body:
{
"data": [{
"name": "name",
"value": "New Contract"
}]
}
/api/customers/K0002/contracts/404
with application/json; charset=UTF-8
and body:
{
"data": [{
"name": "name",
"value": "New Contract"
}]
}
Then I should receive HTTP/1.1 404 Not Found
and following body:
{
"title": "Customer contract not found",
"detail": "Customer contract with salesForceId 404 has not been found for Customer K0002",
"described_by": "http://api.nfon.net/probs/customer-contract-not-found"
}
/api/customers/K0002/contracts/800D0000003ARnKIAW with application/json; charset=UTF-8
and body:
{
"data": [{
"name": "name",
"value": "New Contract"
}]
}
Then I should receive HTTP/1.1 403 Forbidden
and following body:
{
"title": "Access forbidden",
"detail": "Required role is missing",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0404/contracts/800D0000003ARnKIAW
with application/json; charset=UTF-8
and body:
{}
Then I should receive HTTP/1.1 404 Not Found {
"described_by": "http://api.nfon.net/probs/customer-not-found",
"title": "Customer not found",
"detail": "Customer with identifier K0404 has not been found"
}