2.5.4 Deletion of a service
Function
Deletes the specified service.
Execution permissions
Admin role, Develop role, Modify role
API version
v1
Request format
DELETE http://host:port/Automation/version/objects/Services/id
Status code
The following table describes the various status codes that can be returned as the response to a request.
Status code |
Message |
Description |
---|---|---|
204 |
No Content |
Processing has been successfully completed. Or, the service to be deleted did not exist. |
401 |
Unauthorized |
The user does not have login permission. |
403 |
Forbidden |
The user does not have permission to delete services. |
409 |
Conflict |
There is a task generated from the applicable service. |
412 |
Precondition failed |
The server is not available. |
500 |
Server-side error |
A server processing error occurred. |
Usage example
In the following example, the API function deletes the service whose instanceID is 2015.
Request header: DELETE /Automation/v1/objects/Services/2015 HTTP/1.1 Host: 192.168.146.132:22015 User-Agent: curl/7.36.0 Accept: application/json Content-Type: application/json Content-Length: 918 Authorization: Basic c3lzdGVtOm1hbmFnZXI= Accept-Language: ja Response header: HTTP/1.1 204 No Content Date: Fri, 07 Aug 2015 09:48:51 GMT Server: Cosminexus HTTP Server Access-Control-Expose-Headers: WWW-Authenticate WWW-Authenticate: HSSO 82b94e7adbdb8cebcb060b12f8c32ee2660a34b_Vlo8Y30JBWoKHUYTEXAMXx5iHgQ=_V0810 Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, POST, DELETE, PUT, HEAD, OPTIONS Access-Control-Allow-Credentials: true Cache-Control: no-cache Content-Length: 0 Content-Type: application/json