Delete work plan for a resource
delete
/rest/ofscCore/v1/resources/{resourceId}/plans
This operation deletes the work plan assigned to the specified group resource.
A field manager can use work plans in the Oracle Field Service Mobility application to measure the planned amount of working time of a group resource for a particular day.
Request
Supported Media Types
- application/x-www-form-urlencoded
Path Parameters
-
resourceId(required): string
The unique identifier of the resource in Oracle Field Service. This maps to the resource field 'external_id' and is not necessarily set for all resources. The resources without this parameter are not visible to the operation.
Query Parameters
-
date(required): string
The date when the work plan is assigned to the resource. Specify the date in YYYY-MM-DD format.
-
measure(required): string
The type of measure used for the work plan.Allowed Values:
[ "man_hours", "points", "scheduled", "FTE" ]
Response
Supported Media Types
- application/json
204 Response
This section describes the 204 status response for this operation.
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 work plan for a resource by submitting a DELETE request on the REST resource.
Example of Request Header
The following shows an example of the response header.
DELETE /rest/ofscCore/v1/resources/<groupId>/plans?measure=points&date=2017-05-23
Example of Response Header
The following example shows the contents of the response header.
HTTP/1.1 204 No Content Server: nginx Date: Tue, 23 May 2017 13:18:49 GMT Content-Type: text/html; charset=utf-8 Connection: keep-alive Access-Control-Allow-Credentials: true