Pega Attachments/Upload API throwing error when uploading attachment by passing base 64

my requirement is to create an attachment when we pass the file content as base 64 in the request body - unable to get successful response.

Hello @AdithyaK17638496 Welcome to the community :slight_smile:

If i understand correctly, you trying to use DX API from outside pega to upload an attachment and want to attach it to the case.

Please refer to the below pega documentation for the same and see if you are following the same steps

Let us know if you have questions even after following these steps.

Regards

JC

1 Like

Hi @AdithyaK17638496 , I hope you’re leveraging the S3 bucket or repo to store your attachment. Please trigger D_pxNewFile and pass the base64 file or attachtoPDF activity to attach to the case by base 64 format.

If you’re using DX APIs to attach, please refer this link (search for Attachment in the below link),