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.
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.
Comments or questions about this documentation? Contact us for support!