Delete an activity
delete
/rest/ofscCore/v1/activities/{activityId}
This operation deletes the specified activity when the following conditions are met:
- The activity status is 'pending'.
- The activity is not scheduled for a past date.
- The route is not started.
Request
Path Parameters
-
activityId(required): integer
The unique identifier of the activity in Oracle Field Service.
Response
Supported Media Types
- application/json
204 Response
This section describes the 204 status response for this operation. This response code indicates that the operation has completed successfully. This operation does not return any elements in the response body.
Default Response
This section describes the default error response for this operation.
Root Schema : Error
Type:
Show Source
object
-
detail:
string
The detailed description of this error.
-
status:
string
The HTTP status code of this error.
-
title(required):
string
The brief description of this error.
-
type(required):
string
The URL of the web page containing more details about this error.
Examples
The following example shows how to delete an activity by submitting a DELETE request on the REST resource using cURL.
curl -X 'DELETE' \ -u '<CLIENT-ID>@<INSTANCE-NAME>:<CLIENT-SECRET>' \ -H 'Content-Type: application/json' \ --data-binary '' \ 'https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/activities/4225269'
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 204 No Content Server: nginx/1.2.7 Date: Fri, 18 Mar 2016 02:22:03 GMT Content-Type: application/json; charset=utf-8 Connection: close