Create work plan for a resource

post

/rest/ofscCore/v1/resources/{resourceId}/plans

This operation creates a work plan for the specified group resource.

A field manager can use work plans in the Oracle Field Service Cloud Mobility application to measure the planned amount of working time of a group resource for a particular day.

Request

Path Parameters
  • The unique identifier of the resource in Oracle Field Service Cloud. 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.
Body ()
Root Schema : Work Plan
Type: object
Title: Work Plan
The work plan for the resource.
Show Source
  • Title: Date
    The date when the work plan is assigned to the resource. Specify the date in YYYY-MM-DD format.
  • Title: Measure
    Allowed Values: [ "man_hours", "points", "scheduled", "FTE" ]
    The type of measure used for the work plan.
  • Title: Value
    Minimum Value: 0
    Maximum Value: 65535
    The value of the measure.
Back to Top

Response

Supported Media Types

204 Response

This section describes the 204 status response for this operation.

Default Response

This section describes the default error response for this operation.
Body ()
Root Schema : Error
Type: object
Error response
Show Source
Back to Top

Examples

The following example shows how to create work plan for resource by submitting a POST request on the REST resource.

Example of Request Header

The following shows an example of the request header.

POST /rest/ofscCore/v1/resources/44035/plans HTTP/1.0
Authorization: Basic c29hcEB5YW1hdG86MQ==
Host: <instance_name>.etadirect.com
Accept: */*

Example of Request Body

The following shows an example of the request body in JSON format.

   
{
        "measure": "points",
        "date": "2015-11-27",
        "value": "340"
}

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 204 OK
Server: nginx/1.6.2
Date: Tue, 28 Jul 2015 10:06:02 GMT
Content-Type: application/json; charset=utf-8
Back to Top