/api/customers/K0002/targets/frontdesk-services/17/target
application/json; charset=UTF-8
{
"links": [{
"rel": "targetService",
"href": "/api/customers/K0002/targets/skill-services/18"
}],
"data": [{
"name": "context",
"value": "my random context for skill service"
}]
}
HTTP/1.1 201 Created
with
http://localhost:9998/api/customers/K0002/targets/frontdesk-services/17/target/18
{
"href": "/api/customers/K0002/targets/frontdesk-services/17/target/18"
}
/api/customers/K0002/targets/frontdesk-services/17/target
as
application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "targetService",
"href": "/api/customers/K0003/targets/skill-services/95"
}],
"data": [{
"name": "context",
"value": "my random context for queue service"
}]
}
Then I should receive
HTTP/1.1 403 Forbidden
with following body:
{
"detail": "Access denied to [Customer] with id [K0003]",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0002/targets/frontdesk-services/17/target
as
application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "targetService",
"href": "/api/customers/K0002/targets/queue-services/23"
}],
"data": [{
"name": "context",
"value": "my random context for queue service"
}]
}
Then I should receive
HTTP/1.1 201 Created
with
http://localhost:9998/api/customers/K0002/targets/frontdesk-services/17/target/23
{
"href": "/api/customers/K0002/targets/frontdesk-services/17/target/23"
}
/api/customers/K0002/targets/frontdesk-services/17/target/23
HTTP/1.1 200 OK
with body:
{
"href": "/api/customers/K0002/targets/frontdesk-services/17/target/23",
"links": [{
"rel": "targetService",
"href": "/api/customers/K0002/targets/queue-services/23"
}],
"data": [{
"name": "context",
"value": "my random context for queue service"
}]
}
/api/customers/K0002/targets/frontdesk-services/17/target
application/json; charset=UTF-8
{
"links": [{
"rel": "targetService",
"href": "/api/customers/K0002/targets/phone-extensions/45"
}],
"data": [{
"name": "context",
"value": "my random context for a phone extension"
}]
}
HTTP/1.1 201 Created
with
http://localhost:9998/api/customers/K0002/targets/frontdesk-services/17/target/45
{
"href": "/api/customers/K0002/targets/frontdesk-services/17/target/45"
}
/api/customers/K0002/targets/frontdesk-services/17/target/45
HTTP/1.1 200 OK
with body:
{
"href": "/api/customers/K0002/targets/frontdesk-services/17/target/45",
"links": [{
"rel": "targetService",
"href": "/api/customers/K0002/targets/phone-extensions/45"
}],
"data": [{
"name": "context",
"value": "my random context for a phone extension"
}]
}