Update content with file attachments using Rest API - /km/api/v1/content/{id}
Summary
OK-FMS0009 - Cannot get file: [fileName = {fileName}]Content
Hello All,
When we have tried to upload attachment using update content Rest API we have received OK-FMS0009 error message, can you please guide us in resolving this issue?
Error Message:
Cannot get file: [fileName = FileMetaDataBO [dateAdded=null, dateModified=null, repositoryReferenceKey=null, fileName=null, checksum=null, fileSize=null, binary=null, fileMetaDataDeleted=false, documentId=12345, attachmentDocID=null, fileUrl=null, title=null, fileContentType=null, description=null, createdBy=null]]
REST API: http://<IM_REST_API_HOST>/km/api/latest/content/{id}
JSON - Request Body
{
"isForEdit": true,
"categories": [],
"recordId": "AF4ADCFFB2914F539711548AF595B211",
"versionId": "B32A0D804B2449408ABC57292E5C153C",
1