Maintenance Notice - PDF Generation
Dynamic PDF generation for web-based content is temporarily unavailable. This maintenance affects dynamic PDF files that are generated from either the HTML-based page or manual that you are viewing. Links that normally allow this functionality have been hidden, and will reappear as soon as the feature is restored.


Note: Access to static files, including PDF files that are not dynamically generated from our web-based content, is unaffected.

Jump to: navigation, search

Delete Service By ID

DELETE /services/${service_id}

Description

Enables your application to delete a service if its ID is known.

Important
Your appalication needs a WRITE role to perform this request.

Operation

Method DELETE
URL /genesys/1/cs/services/${service_id}
Field Name   Type   Mandatory Description
URI Parameters
${service_id} integer yes The service ID.

Response

The Context Management Service API answers with HTTP codes for every request. The following table shows the correct response for a successful request. See HTTP Response Codes and Errors for further details on the possible codes that this operation can return.

Response
HTTP code 200
HTTP message OK

<references />

Example

Operation The following operation deletes the given service with its active states and tasks.

DELETE http://localhost:8080/genesys/1/cs/services/361-a3793cef-d559-4f9f-a95d-64555a4ba371

Result

200 OK

In case of error, the result would have been:

400 Bad Request
{
    "message": "There are no service found for : 361-a3793cef-d559-4f9f-a95d-64555a4ba371",
    "exception": "com.genesyslab.gsg.services.contextservices.exceptions.NotFoundException"
}
This page was last edited on April 27, 2017, at 10:04.

Feedback

Comment on this article:

blog comments powered by Disqus