Batch Update Resource Demands
put
/api/restapi/resourceDemand/batch
Send a request to this endpoint to update one or more resource demands.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : List<ApiEntityResourceDemandInput>
Type:
array
Title:
Show Source
List<ApiEntityResourceDemandInput>
-
Array of:
object ApiEntityResourceDemandInput
Title:
ApiEntityResourceDemandInput
This entity represents a ResourceDemand object, a unique ResourceDemand object can be identified by the following combinations of the fields.- resourceDemandId
- projectId,resourceId
- resourceId,projectCode,workspaceCode
- projectId,resourceCode,resourceClass,workspaceCode
- projectCode,resourceCode,resourceClass,workspaceCode
Nested Schema : ApiEntityResourceDemandInput
Type:
object
Title:
ApiEntityResourceDemandInput
This entity represents a ResourceDemand object, a unique ResourceDemand object can be identified by the following combinations of the fields.
Show Source
- resourceDemandId
- projectId,resourceId
- resourceId,projectCode,workspaceCode
- projectId,resourceCode,resourceClass,workspaceCode
- projectCode,resourceCode,resourceClass,workspaceCode
-
allocationPercentage: number
(double)
The allocation of the current role, displayed as a percentage of the availability of the role.
-
commitDuration: number
(double)
The total duration of the commitments.
-
commitEndDate: string
(date-time)
The finish date of the allocation commitment.
-
commitFTE: number
The total committed FTE. Calculated as total commitment units divided by total commitment duration.
-
commitStartDate: string
(date-time)
The start date of the allocation commitment.
-
committedUnits: number
(double)
The sum of committed units for a given project - role demand.
-
demandFTE: number
The total demand FTE. Calculated as total demand units divided by total demand duration.
-
demandUnits: number
(double)
The sum of the demand units entered for a single role.
-
duration: number
(double)
The total expected duration of the demand.
-
endDate: string
(date-time)
The finish date for the demand.
Calculated as Start plus Total Demand. -
periodId: integer
(int64)
The unique identifier for the period.
-
projectCode: string
Minimum Length:
1
Maximum Length:60
The unique identifier for a project set by the user who created the project. -
projectId(required): integer
(int64)
The unique identifier for the project.The project object can also be identified by its unique criteria.
-
proposedAllocationUnits: number
(double)
The total role allocation units proposed.
-
proposedDuration: number
(double)
The total duration of the proposed role allocation units.
-
proposedEndDate: string
(date-time)
The finish date of the proposed role allocations.
-
proposedFTE: number
The total proposed allocation FTE. Calculated as total proposed role allocation units divided by the total proposed role allocation duration.
-
proposedStartDate: string
(date-time)
The start date of the proposed role allocations.
-
requesterId: integer
(int64)
The unique identifier of the user who submitted the demand.
-
resourceClass: string
Allowed Values:
[ "RESOURCE", "ROLE" ]
The class identifies the item as a resource or a role. -
resourceCode: string
Minimum Length:
1
Maximum Length:60
The unique identifier for the resource or role. -
resourceDemandData: array
resourceDemandData
Data about demand for the resource.
-
resourceDemandId: integer
(int64)
The unique identifier of the demand. This value should not be provided in create operation request data, however, it is required for update requests.
-
resourceId(required): integer
(int64)
The unique identifier for the resource.The resource object can also be identified by its unique criteria.
-
sequenceNumber(required): integer
(int32)
Determines the order of appearance of demands in a list.
-
startDate: string
(date-time)
The start date for the demand.
-
status: string
Allowed Values:
[ "DRAFT", "COMMITTED", "NEW", "REVISED", "REVIEWED" ]
The status of the current demand. -
workspaceCode: string
Minimum Length:
0
Maximum Length:60
The user-specified identifier of a workspace.
Nested Schema : resourceDemandData
Type:
array
Data about demand for the resource.
Show Source
-
Array of:
object ApiEntityResourceDemandDataInput
Title:
ApiEntityResourceDemandDataInput
Nested Schema : ApiEntityResourceDemandDataInput
Type:
object
Title:
Show Source
ApiEntityResourceDemandDataInput
-
allocatedUnits: number
(double)
The unit allocation for the current role.
-
commitDate: string
(date-time)
The commitment date for the demand.
-
committedFlag: boolean
Indicates whether the weekly demand data is committed.
-
committedUnits: number
(double)
The total committed units of the weekly demand data.
-
demandDataId: integer
(int64)
The unique identifier for the weekly demand data.
-
demandUnits: number
(double)
The demand units entered for a single role.
-
duration: number
(double)
The total expected duration of the weekly demand data.
-
endDate: string
(date-time)
The finish date for the weekly demand data.
Calculated as Start plus Total Demand. -
proposedAllocationUnits: number
(double)
The total proposed duration of the demand.
-
proposedDuration: number
(double)
The total role allocation units proposed.
-
resourceDemandId(required): integer
(int64)
The unique identifier for the demand.
-
startDate: string
(date-time)
The start date for the weekly demand data.
-
startOfMonth: string
(date-time)
The month in which the demand starts.
-
status: string
Allowed Values:
[ "DRAFT", "COMMITTED", "NEW", "REVISED", "REVIEWED" ]
The status of the current weekly demand data.
Examples
Back to Top
Response
200 Response
A collection of object IDs mapped to a canonical link of the object. For example - {"links":{"1":"https://[host]:[port]/api/restapi/[object]/1","2":"https://[host]:[port]/api/restapi/[object]/2"}}
400 Response
Invalid input for the Resource Demand service.