How to send metadata in json format in connect-rest ?
we have to pass three below given fields in body:-
1. File name
2.Metadata
3.file content
How can we pass request parameter in json format..seems map from json in connect-rest doesn't work.
***Moderator Edit: Vidyaranjan | Updated Categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Please follow below steps:
1. Create pyRequestAttachmentPage of Data-ServiceMessage class and map following properties -
pyAttachNames
pyAttachFileNames
pyAttachTypes
pyAttachValues
2. Your metadata should be set to pyAttachValues with pyAttachTypes as "text/json" (if the metadata is in json format)
3. Your filename and content should be set to pyAttachFileNames and pyAttachValues respectively. You can even set the filetype to pyAttachTypes.
Please refer to pzCreateFileRequest DT used in D_pxCreateFile DP. This suits your scenario.