Delete assigned locations

delete

/rest/ofscCore/v1/resources/{resourceId}/assignedLocations/{date}

This operation deletes the locations assigned to the specified resource for the specified weekday or date.

Permissions:

The permission 'core_api_resource' has to be set to 'ReadWrite' for this API to work.

Request

Path Parameters
  • The date for which you want to remove the locations assigned to the resource. Specify the date in either of these formats:

    • YYYY-MM-DD
    • Day of the week ('sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat')
  • The unique identifer of the resource.
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
Show Source
Back to Top

Examples

Example 1

The following example shows how to delete the assigned locations of a resource for the specified date by submitting a DELETE request on the REST resource using cURL.

cURL command for Example 1

curl -s -u "<CLIENT_ID>@<INSTANCE_NAME>:<CLIENT_SECRET>" --url "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/resources/default_technician/assignedLocations/2018-06-01" -X DELETE

Response Header for Example 1

The following shows an example of the response header.

HTTP/1.1 204 No content

Example 2

The following example shows how to delete the assigned locations of a resource for the specified weekday by submitting a DELETE request on the REST resource using cURL.

cURL command for Example 2

curl -s -u "<CLIENT_ID>@<INSTANCE_NAME>:<CLIENT_SECRET>" --url "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/resources/default_technician/overrideLocations/mon" -X DELETE

Response Header for Example 2

The following shows an example of the response header.

HTTP/1.1 204 No content
Back to Top