02-04-2022 09:42 AM
I am working on creating a wrapper for the Foundations EP5 REST API and came across what I believe is incorrect information in the Spec.
For the Document PUT request, the spec says that TargetFileTypeId is NOT required given you are not trying to upload a new rendition of the latest revision.
However, I have not found this to be true, I've tried the following:
Excluding TargetFileTypeId completely from the request
Passing explicit "null"
Passing an empty string ""
Passing "0"
The only way I can get the document to re-index to TargetDocumentTypeId I am specifying is by passing the current FileTypeId of the document.
Is this a known issue? Is the spec incorrect? Or has anyone else done this successfully?
02-04-2022 10:45 AM
I concur with your findings and I have found the FileTypeId to be a required field as well.
02-04-2022 12:03 PM
It's so unfortunate because our consumers don't use renditions at all and I can't find a simple way of getting the fileTypeId of a document on their behalf.
02-07-2022 06:00 AM
This is similar to what our Web and Unity client will do during an upload. When a user chooses the file to upload, it takes a best guess at the file type and preselects it for them. Most of the time users probably don't have to change the value. This endpoint allows you to provide similar functionality. It doesn't get rid of the need to specify file type, but it may make the user have to worry about it less. If the files are unusual extensions that end point may not always have a "best-guess" though.
02-07-2022 06:33 AM
Thanks for this suggestion
Thanks.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.