Update an attachment of a candidate

patch

/hcmRestApi/resources/11.13.18.05/recruitingCandidates/{CandidateNumber}/child/attachments/{attachmentsUniqID}

Request

Path Parameters
  • The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
  • This is the hash key of the attributes which make up the composite key for the Attachments of the Candidates resource and used to uniquely identify an instance of Attachments of the Candidates. The client should not generate the hash key value. Instead, the client should query on the Attachments of the Candidates collection resource in order to navigate to a specific instance of Attachments of the Candidates to get the hash key.
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 : recruitingCandidates-attachments-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to update a candidate attachment by submitting a PATCH request on the REST resource using cURL.

curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X PATCH -d payload http://host:port/hcmCoreApi/resources/11.13.18.05/recruitingJobRequisitions/PR_REQ_501/child/attachments/00020000000EACED00057708000110F08413625C0000000EACED00057708000110F08413625B

Example of Payload

The following is an example of the payload.

{
	"FileName": "sampleFile.doc"
}

Example of Response Header

The following is an example of the response header.

HTTP/1.1 200 OK
Content-Type : application/vnd.oracle.adf.resourceitem+json

Example of Response Body

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

{
    "AttachedDocumentId": 300100176567848,
    "LastUpdateDate": "2019-03-22T22:46:14.301+00:00",
    "LastUpdatedBy": "JH-HOPKINS",
    "DatatypeCode": "FILE",
    "FileName": "sampleFile.doc",
    "DmFolderPath": null,
    "Url": null,
    "CategoryName": "MISC",
    "UserName": "Miscellaneous",
    "Uri": null,
    "FileUrl": "/content/conn/FusionAppsContentRepository/uuid/dDocID%3a598?XFND_SCHEME_ID=1&XFND_CERT_FP=F49039C2CD07BD7DA2FA95DE445FFD10FB91B2E2&XFND_RANDOM=-8369605663474169832&XFND_EXPIRES=1553295542344&XFND_SIGNATURE=DFXg9lLVBC6xk4XGvb~mL6r-Vy525UHXfnDRWYxc9KpB1KiYW-~vOXyo3reYw5MgjC6bBNvLWl4Q2fj~8TwVYG172rIwjVGRe~Wl2Qb27TxhGGpyO69OgMsJoNLk4MMIj-UpzmjZlE9KFzuFFiXvaU6yS1wAEFUz-shTuaGU6k4Ka4dzK5dQPIaRcuASNnojQX27Mh~eYqqf8BIxRico1QvcRsGmd4XsdSE6zRK4j4Z1iWKE3DrE7SG1jASvwCDh18toLMX~2fS8rwZBpjqeTf0YBM36-MtF6pr9L2IZys5QbHsoujYZPDEiADmMk6B55~vTuze~hECIs5ZZ5vDm8g__&Id=598&download",
    "UploadedText": null,
    "UploadedFileContentType": "application/msword",
    "UploadedFileLength": 458,
    "UploadedFileName": null,
    "ContentRepositoryFileShared": "false",
    "Title": "test2_jackson.doc",
    "Description": "",
    "ErrorStatusCode": null,
    "ErrorStatusMessage": null,
    "CreatedBy": "JH-HOPKINS",
    "CreationDate": "2019-03-22T22:46:11+00:00",
    "ExpirationDate": null,
    "LastUpdatedByUserName": "John Hopkins",
    "CreatedByUserName": "John Hopkins",
    "links": [
        {...}
    ]
}
Back to Top