Update an expense resource assignment for a task
patch
/fscmRestApi/resources/11.13.18.05/projectPlans/{ProjectId}/child/TaskExpenseResourceAssignments/{TaskExpenseResourceAssignmentId}
Request
Path Parameters
-
ProjectId(required): integer(int64)
Unique identifier of the project.
-
TaskExpenseResourceAssignmentId(required): integer(int64)
Unique identifier of the expense resource assignment to the project task. Value is auto-generated when using POST and mandatory when using PATCH.
Header Parameters
-
Metadata-Context:
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:
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/json
Root Schema : schema
Type:
Show Source
object-
ActualAmount: number
Title:
Expense Resource Actual AmountDefault Value:0The actual expense cost amount of a specific expense resource assigned to the task. Default value is 0 when using POST. -
CurrentAmount: number
Title:
Expense Resource Current AmountThe current expense cost amount of a specific expense resource assigned to the task. It is auto-calculated as the sum of Expense Resource Actual Amount plus Expense Resource Remaining Amount. -
ExpenseResourceId: integer
(int64)
Title:
Expense Resource IDIdentifier of the expense resource assigned to the project task. You must enter either the Expense Resource Name or the Expense Resource ID when using POST or PATCH, but not both. -
IntegrationSource: string
Title:
Integration SourceIndicates the task was created in a third-party application. -
PlannedAmount: number
Title:
Expense Resource Planned AmountDefault Value:0The planned expense cost amount of a specific expense resource assigned to the task. Default value is 0 when using POST. -
RemainingAmount: number
Title:
Expense Resource Remaining AmountDefault Value:0The remaining expense cost amount of a specific expense resource assigned to the task. Default value is 0 when using POST. -
ResourceName: string
Title:
Expense Resource NameMaximum Length:240Name of the expense resource assigned to the project task. You must enter either the Expense Resource Name or the Expense Resource ID when using POST or PATCH, but not both.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
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:
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.
Root Schema : projectPlans-TaskExpenseResourceAssignments-item-response
Type:
Show Source
object-
ActualAmount: number
Title:
Expense Resource Actual AmountDefault Value:0The actual expense cost amount of a specific expense resource assigned to the task. Default value is 0 when using POST. -
CurrentAmount: number
Title:
Expense Resource Current AmountThe current expense cost amount of a specific expense resource assigned to the task. It is auto-calculated as the sum of Expense Resource Actual Amount plus Expense Resource Remaining Amount. -
ExpenseResourceId: integer
(int64)
Title:
Expense Resource IDIdentifier of the expense resource assigned to the project task. You must enter either the Expense Resource Name or the Expense Resource ID when using POST or PATCH, but not both. -
IntegrationSource: string
Title:
Integration SourceIndicates the task was created in a third-party application. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PlannedAmount: number
Title:
Expense Resource Planned AmountDefault Value:0The planned expense cost amount of a specific expense resource assigned to the task. Default value is 0 when using POST. -
RemainingAmount: number
Title:
Expense Resource Remaining AmountDefault Value:0The remaining expense cost amount of a specific expense resource assigned to the task. Default value is 0 when using POST. -
ResourceName: string
Title:
Expense Resource NameMaximum Length:240Name of the expense resource assigned to the project task. You must enter either the Expense Resource Name or the Expense Resource ID when using POST or PATCH, but not both. -
TaskExpenseResourceAssignmentId: integer
(int64)
Title:
Expense Resource Assignment IDRead Only:trueUnique identifier of the expense resource assignment to the project task. Value is auto-generated when using POST and mandatory when using PATCH. -
TaskId: integer
(int64)
Title:
Task IDIdentifier of the task to which the expense resource is assigned. Value is mandatory when using POST and must refer to a task that already exists in the project.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Examples
The following example shows how to update an expense resource assignment by submitting a PATCH request on the REST resource using cURL.
curl --user ppm_cloud_user -X PATCH -d @example_request_payload.json --header "Content-Type: application/json" https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectPlans/300100124723999/child/TaskExpenseResourceAssignments/300100124762029
Request Body Example
The following shows an example of the request body in JSON format.
{
"ResourceName" : "Air",
"ActualAmount" : 100,
"PlannedAmount" : 51
}
Response Body Example
The following shows an example of the response body in JSON format.
{
"ActualAmount": 100,
"CurrentAmount": 100,
"TaskExpenseResourceAssignmentId": 300100124762029,
"ExpenseResourceId": 1001,
"PlannedAmount": 51,
"RemainingAmount": 0,
"ResourceName": "Air",
"TaskId": 300100124764034}