Delete an attachment of a candidate
delete
/hcmRestApi/resources/11.13.18.05/recruitingCandidates/{CandidateNumber}/child/attachments/{attachmentsUniqID}
Request
Path Parameters
-
CandidateNumber(required): string
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=
-
attachmentsUniqID(required): string
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
-
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.
There's no request body for this operation.
Back to TopResponse
Default Response
No Content. This task does not return elements in the response body.
Examples
The following example shows how to delete a candidate attachment by submitting a DELETE request on the REST resource using cURL.
curl -i -u "<username>:<password>" -X DELETE http://host:port/hcmCoreApi/resources/11.13.18.05/recruitingJobRequisitions/PR_REQ_501/child/attachments/00020000000EACED00057708000110F0844B3CDF0000000EACED00057708000110F0844B3CDE
Example of Response Header
The following is an example of the response header.
204 No Content