Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MoveEnvelopesAsync returns This Account lacks sufficient permissions. Invalid folder ID. #248

Open
osmant opened this issue Oct 31, 2019 · 1 comment

Comments

@osmant
Copy link

osmant commented Oct 31, 2019

Hi,

This is probably not related to c# SDK and indeed it could be related to rest API itself, I don't know any channel to report this issue to DocuSign to the team who develops the Rest API.

I am trying to use PUT /v2.1/accounts/{accountId}/folders/{folderId} api in c# sdk to move templates from my templates folder to shared template folder.

I tried using this api on api explorer page for Folders:moveEnvelopes and it is working as expected and from DocuSign UI I can see that the templates are moved to shared folder.

However, when using MoveEnvelopesAsync or MoveEnvelopes methods in c# SDK, I am getting

This Account lacks sufficient permissions. Invalid folder ID. error message.

I tried to dig this issue further with fiddler.

I noticed that only difference between ApiExplorer and C# sdk, is the version of RestApi being used.

c# sdk uses v2.1 as I can see from the source code and api explorer uses v2. Later I downloaded the source code of sdk and add it to my solution. To be able to debug it, I removed nuget reference and add the sdk project as a reference to my project.

And then in the sdk source code, I changed the version of the API in the following line
https://github.com/docusign/docusign-csharp-client/blob/7185c466bf9ccd93599637e1901022bc1c5eead6/sdk/src/DocuSign.eSign/Api/FoldersApi.cs#L878
to

var localVarPath = "/v2/accounts/{accountId}/folders/{folderId}";

to make sure if this is really rest api problem. After this change, I was successfully able to move templates to shared folder.

If you are not dealing with this issue directly, can you please pass this ticket to team who works on rest api in DocuSign?

Regards

@LarryKlugerDS
Copy link
Contributor

The API for moving templates to a folder has changed in v2.1. Unfortunately, the new API method is not yet public. Our engineering group is evaluating its status. I have filed internal ticket TT-2817, asking for the endpoint to be made public.

If you want to add prioritization to the request, please ask your DocuSign contacts about the issue, referencing TT-2817.

In the meantime, please continue to use the v2 end point for moving templates into a folder.

Thank you,
Larry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants