/api/system-integrators/S0123 as application/json; charset=UTF-8 {
"links": [{
"rel": "defaultRatingProfile",
"href": "/api/operators/C0002/rating-profiles/Another%20Profile"
}, {
"rel": "timezone",
"href": "/api/time-zones/Europe.Berlin"
}],
"data": [{
"name": "name",
"value": "Changed name"
}, {
"name": "contactName",
"value": "Changed contact name"
}, {
"name": "contactEmail",
"value": "changed@email.com"
}, {
"name": "contactPhoneNumber",
"value": "+49 (89) 45300-511"
}, {
"name": "nscAccess",
"value": true
}, {
"name": "notes",
"value": "Changed with API"
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/system-integrators/S0123HTTP/1.1 200 OK with body:
{
"href": "/api/system-integrators/S0123",
"links": [{
"rel": "operator",
"href": "/api/operators/C0002"
}, {
"rel": "defaultRatingProfile",
"href": "/api/operators/C0002/rating-profiles/Another%20Profile"
}, {
"rel": "account",
"href": "/api/accounts/123S0123"
}, {
"rel": "timezone",
"href": "/api/time-zones/Europe.Berlin"
}],
"data": [{
"name": "externalIdentifier",
"value": "S0123"
}, {
"name": "name",
"value": "Changed name"
}, {
"name": "contactName",
"value": "Changed contact name"
}, {
"name": "contactEmail",
"value": "changed@email.com"
}, {
"name": "contactPhoneNumber",
"value": "+49 (89) 45300-511"
}, {
"name": "nscAccess",
"value": true
}, {
"name": "cdrAccess",
"value": false
}, {
"name": "notes",
"value": "Changed with API"
}, {
"name": "password",
"value": "***"
}, {
"name": "securityQuestion",
"value": "question"
}, {
"name": "securityAnswer",
"value": "answer"
}]
}
/api/system-integrators/S0123 as application/json; charset=UTF-8 {
"links": [{
"rel": "operator",
"href": "/api/operators/C0003"
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/system-integrators/S0123HTTP/1.1 200 OK with body:
{
"href": "/api/system-integrators/S0123",
"links": [{
"rel": "operator",
"href": "/api/operators/C0003"
}, {
"rel": "defaultRatingProfile",
"href": "/api/operators/C0003/rating-profiles/Rating%20Profile%202"
}]
}
/api/system-integrators/S0123 as application/json; charset=UTF-8 {
"links": [{
"rel": "defaultRatingProfile",
"href": "/api/operators/C0003/rating-profiles/Another%20Profile"
}]
}
Then I should receive HTTP/1.1 400 Bad Request with following body:
{
"detail": "Rating Profile 'Another Profile' does not belong to Operator 'C0002'",
"described_by": "http://api.nfon.net/probs/system-integrator-rating-profile-operator-not-match"
}
/api/system-integrators/S0123 as application/json; charset=UTF-8 {
"links": [{
"rel": "operator",
"href": "/api/operators/C0003"
}]
}
Then I should receive HTTP/1.1 403 Forbidden with following body:
{
"detail": "Access denied to [SystemIntegrator] with id [S0123]",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/system-integrators/S0002 as application/json; charset=UTF-8 {}
Then I should receive HTTP/1.1 403 Forbidden
with following body:
{
"detail": "Required role is missing",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/system-integrators/S0002 as application/json; charset=UTF-8 {}
Then I should receive HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [SystemIntegrator] with id [S0002]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/system-integrators/S0003 as application/json; charset=UTF-8 {}
Then I should receive HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [SystemIntegrator] with id [S0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/system-integrators/S0003 as application/json; charset=UTF-8 {}
Then I should receive HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [SystemIntegrator] with id [S0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/system-integrators/S0404 as application/json; charset=UTF-8 {}
Then I should receive HTTP/1.1 404 Not Found
with following body:
{
"described_by": "http://api.nfon.net/probs/systemIntegrator-not-found",
"title": "SystemIntegrator not found",
"detail": "SystemIntegrator with identifier S0404 has not been found"
}