Create Reconciliation Comment Attachment
Creates a file attachment associated with a reconciliation comment.
REST Resource
POST /arm/rest/rc/v1/reconciliations/{reconciliationId}/comments/{commentId}/attachments
Required Roles
The user must have access to the reconciliation and permission to edit or delete the comment.
Permission depends on the individual comment and the reconciliation status.
Request
Supported Media Types: multipart/form-data
Send the file content and its display name as multipart form fields.
Table 4-72 Request Parameters
| Name | Type | Description | Required |
|---|---|---|---|
reconciliationId
|
Path | ID of the reconciliation. | Yes |
commentId
|
Path | ID of the comment to which the attachment is added. | Yes |
Example URL
POST https://<service-host>/arm/rest/rc/v1/reconciliations/{reconciliationId}/comments/{commentId}/attachments
Response
Supported Media Types: application/json
Returns an object containing the details of the newly created attachment.
Table 4-73 Response Parameters
| Name | Description |
|---|---|
attachmentId
|
Unique identifier of the created attachment. |
displayName
|
Display name of the attachment. |
type
|
Attachment type. The example returns FILE. |
fileName
|
Name of the attached file. |
mimeType
|
Media type of the attached file, such as application/pdf. |
creatorId
|
Identifier of the user who created the attachment. |
creatorName
|
Display name of the user who created the attachment. |
createdDate
|
Date and time when the attachment was created. The example uses a timestamp placeholder. |
Example of Response Body
The following is an example of the response body in JSON format.
{
"attachmentId": 9401,
"displayName": "Comment support",
"type": "FILE",
"fileName": "comment-support.pdf",
"mimeType": "application/pdf",
"creatorId": "jsmith",
"creatorName": "John Smith",
"createdDate": "<timestamp>"
}
Sample cURL Command
The following example uploads comment-support.pdf to comment 9001 of
reconciliation 100000004828309, using Comment support as its display name.
curl --request POST --url "https://<SERVICE_NAME>-<TENANT_NAME>.<SERVICE_TYPE>.<dcX>.oraclecloud.com/arm/rest/rc/v1/reconciliations/100000004828309/comments/9001/attachments" --header "Authorization: ${AUTHORIZATION_HEADER}" --header "Accept: application/json" --form "file=@comment-support.pdf" --form-string "name=Comment support"