Assign or unassign a user to an operation resource in a maintenance work order using a user-defined action
post
/fscmRestApi/resources/11.13.18.05/maintenanceWorkOrders/action/manageResourceAssignment
Creates work order operation resources assignments. A work order may have one or more operations. For each operation, none, one or more resources may be defined. For each unique resource, one or more users may be optionally assigned. To be assigned to an operation resource, a user must have a labor instance defined for the same resource when Workforce management(WFM) integration is not enabled . Once assigned, a user can search for work orders and operations where they are assigned.
A user can be unassigned from an operation resource as long as resource transactions for their assignment have not been reported.
A user can be assigned or unassigned to a single operation or all operations in a work order.
If WFM integration is enabled, a user can be assign work if they belong to a scheduling group assigned to a shift at work center location and are asociated with required resource on the day of the shift.
Request
Header Parameters
-
Metadata-Context: string
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version: string
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
- application/vnd.oracle.adf.action+json
Root Schema : schema
Type:
Show Source
object
-
assignmentCode: string
-
laborInstanceCode: string
-
laborInstanceId: number
-
operationSequenceNumber: number
-
organizationCode: string
-
organizationId: number
-
personId: number
-
personNumber: string
-
resourceCode: string
-
resourceId: number
-
shiftCalendarDate: string
(date)
-
shiftId: number
-
workOrderId: number
-
workOrderNumber: string
-
workOrderOperationId: number
Response
Supported Media Types
- application/json
- application/vnd.oracle.adf.actionresult+json
Default Response
The following table describes the default response for this task.
Root Schema : schema
Type:
Show Source
object
-
result(required): string
If the action completes successfully, a labor instance or person is assigned or unassigned to an operation resource.