Have a trouble with file apload using API

Due to using Pipedrive API in my app, faced File upload… I have an image data:image/png;base64, generated, and after runing uploading the query (

  • method: 'POST', contentType: 'multipart/form-data',
  • body: {
    • file: data:image/png;base64, ALL_THE_IMG_DATA,
    • deal_id: postedDealData.id,
      },
      )

I’ve gotten an error

{
success: false,
error: 'No files were provided with the request.',
error_info: 'Please check developers.pipedrive.com for more information about Pipedrive API.',
data: null,
additional_data: null
}
`

Can anyone help me?

Hi @RS7
Welcome to the community! Which endpoint are you using in this scenario?
If its the Files API, I would recommend trying it out via the Postman API Collection
https://www.postman.com/pipedrive-developers/workspace/pipedrive-api-collection/request/14918448-0d27964e-2498-4425-8fa4-b2399db30ed5

You could also generate a code snippet from there directly.