I’m encountering an issue while attempting to upload a file to Guidewire via an API call from UiPath. Below are the details of the configuration:
File Attachment: Added in the properties as attachments
Metadata (JSON): Added in the properties as body
Bearer Token: Included in the headers
Error Message:
Metadata is not part of the file
Could you please advise on the correct format for the HTTP request to ensure the metadata is properly included?
Note: The same request works successfully in Postman without any issues.
Anil_G
(Anil Gorthi)
June 25, 2025, 2:05am
2
@SruthiSurendran
Did you happen to import the curl?
Also in postman is the metadata given in json format or any other formats?
Cheers
@Anil_G - We are trying to send the request in the postman as below
file: is the actual attachment from the local directory
metadata: is the value extracted as in the below json format
{
“fileName”: “File_Name.eml”,
“claimNumber”: “SYDMLxxxx”,
“description”: “API Testing via postman”,
“gccUserName”: “”,
“contentType”: “Correspondence”,
“exposureNumber”: 1,
“securityType”: “Non_Sensitive”,
“documentStatus”: “Draft”
}
Anil_G
(Anil Gorthi)
June 25, 2025, 5:33am
6
@Ramaseshan_S
Try adding the metadata in parameters section instead of body and check the same
Cheers
yes i have tried sending the metadata as parameter opposed to body
Error Message is:
“{"timestamp":"2025-06-25T05:55:56.823+00:00","status":415,"error":"Unsupported Media Type","message":"Content-Type ‘application/octet-stream’ is not supported .","path":"/upload-document-service"}”