You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Update content with file attachments using Rest API - /km/api/v1/content/{id}

Received Response
16
Views
2
Comments
edited Jun 8, 2022 8:36AM in Agent Desktop 2 comments

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",

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!