Using the DocuSign V2 REST API, I am trying to call the Move Envelope method to put an envelope in the recycle bin.
Here is what my request looks like:
[PUT]
https://na2.docusign.net/restapi/v2/accounts/{accountId}/folders/recyclebin
And here's what my request body looks like:
{"envelopeIds":["05912aa6-fb05-4168-a499-999b20ec1ca6"]}
But for any envelopeId I send, I get the following error:
ENVELOPE_NOT_IN_FOLDER - The envelope does not exist in the folder
I'm not sure what this means because the envelope does exist, so I'm not sure why it can't be found. I've tried with completed envelopes as well as envelopes which have been created but aren't yet signed.
Does anyone know what I am doing wrong or have any other details on what this error message means? I can't find much online about it.