Resource Locations REST Endpoints

Core/Resources/Resource Locations
The resource locations resource is used to view, create, or delete locations for a specific resource. It is also used to create or update the location assignment. Location assignment means assigning the location as 'start', 'end', or 'home zone center' for the resource.
Create a resource location
Method: post
Path: /rest/ofscCore/v1/resources/{resourceId}/locations
Delete a resource location
Method: delete
Path: /rest/ofscCore/v1/resources/{resourceId}/locations/{locationId}
Delete assigned locations
Method: delete
Path: /rest/ofscCore/v1/resources/{resourceId}/assignedLocations/{date}
Get a resource location
Method: get
Path: /rest/ofscCore/v1/resources/{resourceId}/locations/{locationId}
Get assigned locations
Method: get
Path: /rest/ofscCore/v1/resources/{resourceId}/assignedLocations
Get resource locations
Method: get
Path: /rest/ofscCore/v1/resources/{resourceId}/locations
Set assigned locations
Method: put
Path: /rest/ofscCore/v1/resources/{resourceId}/assignedLocations
Update a resource location
Method: patch
Path: /rest/ofscCore/v1/resources/{resourceId}/locations/{locationId}
Update assigned locations
Method: patch
Path: /rest/ofscCore/v1/resources/{resourceId}/assignedLocations