Add Audio file to Call

Dear Team,

When we try to upload audio file in call record we are getting following error.

{“error”:"“file” must be of type object",“validation”:{“source”:“payload”,“keys”:[“file”]},“success”:false,“error_info”:“Please check developers.pipedrive.com for more information about Pipedrive API.”,“data”:null,“additional_data”:null}

Hello! Developer from Pipedrive here.
The type for the property in the request has indeed been marked wrong. The file needs to be an object, like the server-side validation says.
Just make sure the content-type is also multipart/form-data and you should be good to go.

We’ll fix the mistake in the docs. Thanks for drawing our attention to it!