/api/customers/K0002/targets/license-subscriptions as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "afd",
"href": "/api/customers/K0002/targets/phone-extensions/17"
}],
"data": [{
"name": "licenseType",
"value": "phoneextension"
}, {
"name": "uuid",
"value": "6d7eec8c255bed0231665d558132"
}]
}
Then I should receive HTTP/1.1 201 Created with http://localhost:9998/api/customers/K0002/targets/license-subscriptions/6d7eec8c255bed0231665d558132{
"href": "/api/customers/K0002/targets/license-subscriptions/6d7eec8c255bed0231665d558132",
"links": [],
"data": null
}
/api/customers/K0002/targets/license-subscriptions/6d7eec8c255bed0231665d558132
returns HTTP/1.1 200 OK
with following body:
{
"links": [{
"rel": "afd",
"href": "/api/customers/K0002/targets/phone-extensions/17"
}],
"data": [{
"name": "licenseType",
"value": "phoneextension"
}, {
"name": "uuid",
"value": "6d7eec8c255bed0231665d558132"
}]
}
/api/customers/K0002/targets/license-subscriptions as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "afd",
"href": "/api/customers/K0002/targets/phone-extensions/17"
}],
"data": [{
"name": "licenseType",
"value": "phoneextension"
}, {
"name": "uuid",
"value": "6d7eec8c255bed0231665d558132"
}]
}
Then I should receive HTTP/1.1 403 Forbidden {
"detail": "Required role is missing",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0002/targets/license-subscriptions as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "afd",
"href": "/api/customers/K0002/targets/phone-extensions/17"
}],
"data": [{
"name": "licenseType",
"value": "phoneextension"
}, {
"name": "uuid",
"value": "6d7eec8c255bed0231665d558132"
}]
}
Then I should receive HTTP/1.1 403 Forbidden {
"detail": "Required role is missing",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0002/targets/license-subscriptions as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "afd",
"href": "/api/customers/K0002/targets/phone-extensions/17"
}],
"data": [{
"name": "licenseType",
"value": "phoneextension"
}, {
"name": "uuid",
"value": "6d7eec8c255bed0231665d558132"
}]
}
Then I should receive HTTP/1.1 403 Forbidden {
"detail": "Required role is missing",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}