Api >

Service Portal REST API

DELETE existing Frontdesk Target
Test setup
And there is a skill service with name: skill name and service number: 18
And there is a Frontdesk Service with service number: 17
And there is a Frontdesk Target with context my random context for skill service
Given I am authenticated as Customer K0002
When I send /api/customers/K0002/targets/frontdesk-services/17/target/18
Then I should receive HTTP/1.1 204 No Content
DELETE non-existing Frontdesk Target
Test setup
And there is a skill service with name: skill name and service number: 18
And there is a Frontdesk Service with service number: 17
And there is a Frontdesk Target with context my random context for skill service
Given I am authenticated as Customer K0002
When I send /api/customers/K0002/targets/frontdesk-services/17/target/12
Then I should receive HTTP/1.1 404 Not Found
Then I should receive
{
  "detail": "Frontdesk Target with Service Number 12 not found",
  "title": "Frontdesk Target not found",
  "described_by": "http://api.nfon.net/probs/frontdesk-target-not-found"
}
Given I am authenticated as Customer K0002
When I send /api/customers/K0002/targets/frontdesk-services/11/target/12
Then I should receive HTTP/1.1 404 Not Found
Then I should receive
{
  "detail": "Frontdesk Service with service number 11 not found",
  "title": "Frontdesk Service not found",
  "described_by": "http://api.nfon.net/probs/frontdesk-service-not-found"
}