Update a project enterprise expense resource

patch

/fscmRestApi/resources/11.13.18.05/projectEnterpriseExpenseResources/{ResourceId}

Request

Path Parameters
Header Parameters
  • 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".
  • 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
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Description
    Maximum Length: 2000
    Additional details about the project enterprise expense resource.
  • Title: Expenditure Type ID
    Name of the expenditure type of the project enterprise expense resource. Mandatory for POST operation if the resource is created from an expenditure type.
  • Title: Expenditure Type
    Maximum Length: 240
    Name of the expenditure type from which the project enterprise expense resource was created.
  • Title: External ID
    Maximum Length: 240
    Identifier of the project enterprise expense resource in an external application.
  • Title: Resource ID
    Identifier of the project enterprise resource.
  • Title: Resource Name
    Maximum Length: 240
    Name of the project enterprise expense resource. Mandatory for POST operation if the Expenditure Type ID is not provided.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • 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".
  • 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.
Body ()
Root Schema : projectEnterpriseExpenseResources-item-response
Type: object
Show Source
  • Title: Description
    Maximum Length: 2000
    Additional details about the project enterprise expense resource.
  • Title: Expenditure Type ID
    Name of the expenditure type of the project enterprise expense resource. Mandatory for POST operation if the resource is created from an expenditure type.
  • Title: Expenditure Type
    Maximum Length: 240
    Name of the expenditure type from which the project enterprise expense resource was created.
  • Title: External ID
    Maximum Length: 240
    Identifier of the project enterprise expense resource in an external application.
  • Links
  • Title: Resource ID
    Identifier of the project enterprise resource.
  • Title: Resource Name
    Maximum Length: 240
    Name of the project enterprise expense resource. Mandatory for POST operation if the Expenditure Type ID is not provided.
  • Title: Unit of Measure
    Read Only: true
    Maximum Length: 30
    Default Value: Currency
    Unit of measurement of the expenditure of the project enterprise expense resource.
Back to Top

Examples

The following example shows how to update a project enterprise expense resource 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/projectEnterpriseExpenseResources/300100031832307

Request Body Example

The following shows an example of the request body in JSON format.

{
"Description": "Automation_QA"
}

Response Body Example

The following shows an example of the response body in JSON format.

{
    "ResourceId": 300100031832307,
    "ExpenditureTypeId": null,
    "ExpenditureTypeName": null,
    "ResourceName": "PJT_QA_Expense",
    "UnitOfMeasure": "Currency",
    "Description": "Automation_QA",
    "ExternalId": null,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/11.13.18.05/projectEnterpriseExpenseResources/300100031832307",
            "name": "projectEnterpriseExpenseResources",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/11.13.18.05/projectEnterpriseExpenseResources/300100031832307",
            "name": "projectEnterpriseExpenseResources",
            "kind": "item"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/11.13.18.05/projectEnterpriseExpenseResources/300100031832307/lov/ExpenditureTypePVO1",
            "name": "ExpenditureTypePVO1",
            "kind": "collection"
        }
    ]
}
Back to Top