Update an attachment for an award budget

patch

/fscmRestApi/resources/11.13.18.05/awardBudgets/{PlanVersionId}/child/Attachments/{AttachmentsUniqID}

Request

Path Parameters
  • This is the hash key of the attributes which make up the composite key for the Award Budget Attachments resource and used to uniquely identify an instance of Award Budget Attachments. The client should not generate the hash key value. Instead, the client should query on the Award Budget Attachments collection resource in order to navigate to a specific instance of Award Budget Attachments to get the hash key.
  • Identifier of the award budget version.
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
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 : awardBudgets-Attachments-item-response
Type: object
Show Source
Back to Top

Examples

Example 1

The following example shows how to update an existing attachment for an award budget by submitting a PATCH request on the REST resource using cURL.

curl --user ppm_cloud_user -X PATCH -d @example_request_payload.json "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/awardBudgets/<PlanVersionId>/child/Attachments/AttachmentUniqueHashCode" -H 'cache-control: no-cache'

Request Body Example

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

{
"FileName": "File_attachment_Modified.txt"
}

Response Body Example

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

{
    "AttachedDocumentId": 300100544191976,
    "LastUpdateDate": "2021-06-23T03:08:15.268+00:00",
    "LastUpdatedBy": "Charles.Watson",
    "DatatypeCode": "FILE",
    "FileName": "File_attachment_Modified.txt",
    "DmFolderPath": null,
    "DmDocumentId": "UCMFA00087406",
    "DmVersionNumber": "87406",
    "Url": null,
    "CategoryName": "PROJECT_BUDGET",
    "UserName": "Project Budget",
    "Uri": null,
    "FileUrl": "/content/conn/FusionAppsContentRepository/uuid/dDocID%3a87406?XFND_SCHEME_ID=1&XFND_CERT_FP=01A8AFB3277D68B1E0D8CFC44C59578044ADBAE0&XFND_RANDOM=-5977723515445631210&XFND_EXPIRES=1624418717219&XFND_SIGNATURE=A-aQiZw-KOHKtgur4w6H~dCbtCQVL4-J06BVB0wRSp0yLxtyhY~VvqCUef3Eb3GAFedRJGHLORAAC~QQmCM3iugqoNzlAkfy7XiAFhAHuhIjEo50xG4BeXH8BiPIWK326j3V7GwIBZ0wEo~gyXvHxqEh9n9iD1zXI-dVgHmimpW-9nUybdGBAnQtq~ObOlv7-8Jv4WxXoU8lIXriXbnTTSe3NYTdSs4nuo0L8oeHCAoUUkdoNBS2lA~BHIK~z49Z5NisbARFYdVxjzHjn4~9jeoH2T4Foug9eQasU9yok0-vyKu3XnrvNR-aOmwWj6FeBS~iO5UAoE9l5ud8U4DCRQ__&Id=87406&download",
    "UploadedText": null,
    "UploadedFileContentType": "text/plain",
    "UploadedFileLength": 20,
    "UploadedFileName": null,
    "ContentRepositoryFileShared": "false",
    "Title": "Sample File attachment",
    "Description": "",
    "ErrorStatusCode": null,
    "ErrorStatusMessage": null,
    "CreatedBy": "Charles.Watson",
    "CreationDate": "2021-06-23T03:08:13+00:00",
    "ExpirationDate": null,
    "LastUpdatedByUserName": "Charles Watson",
    "CreatedByUserName": "Charles Watson",
    "AsyncTrackerId": null,
    "links": [
        {
            "rel": "self",
            "href": "https://fphchyb13.fa.dc1.c9dev2.visioncorp.com:443/fscmRestApi/resources/11.13.18.05/awardBudgets/100100053015964/child/Attachments/00020000000EACED00057708000110F09A555DE80000000EACED00057708000110F09A555DE7",
            "name": "Attachments",
            "kind": "item"
        },
        {
            "rel": "canonical",
            "href": "https://fphchyb13.fa.dc1.c9dev2.visioncorp.com:443/fscmRestApi/resources/11.13.18.05/awardBudgets/100100053015964/child/Attachments/00020000000EACED00057708000110F09A555DE80000000EACED00057708000110F09A555DE7",
            "name": "Attachments",
            "kind": "item"
        },
        {
            "rel": "parent",
            "href": "https://fphchyb13.fa.dc1.c9dev2.visioncorp.com:443/fscmRestApi/resources/11.13.18.05/awardBudgets/100100053015964",
            "name": "awardBudgets",
            "kind": "item"
        },
        {
            "rel": "enclosure",
            "href": "https://fphchyb13.fa.dc1.c9dev2.visioncorp.com:443/fscmRestApi/resources/11.13.18.05/awardBudgets/100100053015964/child/Attachments/00020000000EACED00057708000110F09A555DE80000000EACED00057708000110F09A555DE7/enclosure/FileContents",
            "name": "FileContents",
            "kind": "other"
        },
        {
            "rel": "enclosure",
            "href": "https://fphchyb13.fa.dc1.c9dev2.visioncorp.com:443/fscmRestApi/resources/11.13.18.05/awardBudgets/100100053015964/child/Attachments/00020000000EACED00057708000110F09A555DE80000000EACED00057708000110F09A555DE7/enclosure/FileWebImage",
            "name": "FileWebImage",
            "kind": "other"
        }
    ]
}

Example 2

The following example shows how to update file contents of an existing attachment for a project budget by submitting a PATCH request on the REST resource using cURL.

curl --user ppm_cloud_user -X PATCH -d @example_request_payload.json "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/awardBudgets/<PlanVersionId>/child/Attachments/AttachmentUniqueHashCode" -H 'cache-control: no-cache'

Request Body Example

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

{
"FileContents": "SGVsbG8gV29ybGQhIQ=="
}

Response Body Example

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

{
    "AttachedDocumentId": 300100544161060,
    "LastUpdateDate": "2021-06-23T03:13:21.342+00:00",
    "LastUpdatedBy": "Charles.Watson",
    "DatatypeCode": "FILE",
    "FileName": "Sample_PDF_1.pdf",
    "DmFolderPath": null,
    "DmDocumentId": "UCMFA00087435",
    "DmVersionNumber": "87435",
    "Url": null,
    "CategoryName": "PROJECT_BUDGET",
    "UserName": "Project Budget",
    "Uri": null,
    "FileUrl": "/content/conn/FusionAppsContentRepository/uuid/dDocID%3a87435?XFND_SCHEME_ID=1&XFND_CERT_FP=01A8AFB3277D68B1E0D8CFC44C59578044ADBAE0&XFND_RANDOM=1586356360030337125&XFND_EXPIRES=1624418654869&XFND_SIGNATURE=ji4vS~I8z6CSTO6w6l-i-kyNh8OVgaSO01DPgzdTWzB1eKIp9xhCC1iVIYUPmoORsy07QGMzYmRV~3MmdRwZYOuXS3kZvKCiUNE4RAIUiLSwCNhPPDcsh8X3V507ohtWRh5Bp7sU3T~lb7gG4KO3HOI-3FtgFDtKIpAsNSvg~rI1mgsPCmFfi3PFfHI-OBnRZui17YgmK5LhzalAZXAddiVshmIKut~ugQOITL1BdfPLVkp5CHgVyyWRw0TvLOgY7YAEvhDlyOwu6liDm4IGM0i2VRn5uU1DL8ZMZKgAqgq4tqYx-fEFG0IPT89hsrjLobrMIE-yG02jdtlc~JwBdw__&Id=87435&download",
    "UploadedText": null,
    "UploadedFileContentType": "application/pdf",
    "UploadedFileLength": 13,
    "UploadedFileName": "Sample_PDF_1.pdf",
    "ContentRepositoryFileShared": "false",
    "Title": "Sample_PDF_1",
    "Description": "",
    "ErrorStatusCode": null,
    "ErrorStatusMessage": null,
    "CreatedBy": "Charles.Watson",
    "CreationDate": "2021-06-23T03:13:21+00:00",
    "ExpirationDate": null,
    "LastUpdatedByUserName": "Charles Watson",
    "CreatedByUserName": "Charles Watson",
    "AsyncTrackerId": null,
    "links": [
        {
            "rel": "self",
            "href": "https://fphchyb13.fa.dc1.c9dev2.visioncorp.com:443/fscmRestApi/resources/11.13.18.05/awardBudgets/100100053015964/child/Attachments/00020000000EACED00057708000110F09A54E5240000000EACED00057708000110F09A54E523",
            "name": "Attachments",
            "kind": "item"
        },
        {
            "rel": "canonical",
            "href": "https://fphchyb13.fa.dc1.c9dev2.visioncorp.com:443/fscmRestApi/resources/11.13.18.05/awardBudgets/100100053015964/child/Attachments/00020000000EACED00057708000110F09A54E5240000000EACED00057708000110F09A54E523",
            "name": "Attachments",
            "kind": "item"
        },
        {
            "rel": "parent",
            "href": "https://fphchyb13.fa.dc1.c9dev2.visioncorp.com:443/fscmRestApi/resources/11.13.18.05/awardBudgets/100100053015964",
            "name": "awardBudgets",
            "kind": "item"
        },
        {
            "rel": "enclosure",
            "href": "https://fphchyb13.fa.dc1.c9dev2.visioncorp.com:443/fscmRestApi/resources/11.13.18.05/awardBudgets/100100053015964/child/Attachments/00020000000EACED00057708000110F09A54E5240000000EACED00057708000110F09A54E523/enclosure/FileContents",
            "name": "FileContents",
            "kind": "other"
        },
        {
            "rel": "enclosure",
            "href": "https://fphchyb13.fa.dc1.c9dev2.visioncorp.com:443/fscmRestApi/resources/11.13.18.05/awardBudgets/100100053015964/child/Attachments/00020000000EACED00057708000110F09A54E5240000000EACED00057708000110F09A54E523/enclosure/FileWebImage",
            "name": "FileWebImage",
            "kind": "other"
        }
    ]
}
Back to Top