Delete assigned locations
/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
-
date(required): string
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')
-
resourceId(required): string
The unique identifer of the resource.
Response
- application/json
204 Response
Default Response
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
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