I need help on how to configure/syntax of the body parm of the HTTP Request
Below is the example of the CURL from the 3rd Party testing tool
Based on the results from the below, I tried creating the HTTP POST but getting invalid JSON error. JSON below.. the base64 variable is "
base64(outputs('Get_file_content')?['body'])" The file is an image in a Sharepoint Folder that I used the Get_file_Content call for.
CURL EXAMPLE:
curl
-X POST "https://**redacted****/libraryItems/uploadFile"
-H "accept: application/json"
-H "Content-Type: multipart/form-data"
-F "command={
"parentFolderId": 1121,
"fileType": "Single Brand Package Product File",
"fileStatus": "Active",
"customFields": [
{"fieldId": "BusinessPillar","value": ["Snacks"]},
{"fieldId": "Owner","value": ["US"],"fieldLabel": "Owner"},
{"fieldId": "PIMDate","value": ["2025-09-23 00:00:00.000-0500"],"fieldLabel": "PIM Date"},
{"fieldId": "Description","value": ["Product Benefit 1-No Package in Image-Z1NH"],"fieldLabel": "Description"}
]
}" -F "file=@00014500009821_C1C1_10117176.png;type=image/png"