首页 > 解决方案 > What is the DocuSign rest api endpoint that mimics Share to Folder action for templates?

问题描述

I am trying to create templates via DocuSign API and as part of the solution design, the templates my app will create needs to be shared with Folder so that whoever has access the folder, will be able to see the templates generated by the app.

This functionality exists in the UI. However, I wasn't able to figure out what rest API I can use to mimic the same behavior of Share to Folder button in Templates UI. I looked the rest API documentation of DocuSign but still unable to figure out how to do that.

Is anyone able to help here?

I tried Folder Api to move the item from my templates to the Shared Template folder. However, this works a bit weird. When I move items from My Templates to Shared Folder, using the PUT /v2.1/accounts/{accountId}/folders/{folderId} endpoint described here

Using PUT /v2.1/accounts/{accountId}/folders/{folderId} endpoint did not work as expected. As soon as I move envelopes to a shared template folder, templates are not appearing under My Templates folder anymore. However, when using Share to Folder feature in the UI, template still remains in the My Templates folder and appears in Shared template folder. This is what I need.

标签: docusignapi

解决方案


您可以使用模板共享 API 共享模板

https://developers.docusign.com/esign-rest-api/reference/Templates/Templates/updateGroupShare

PUT /v2.1/accounts/{accountId}/templates/{templateId}/{templatePart}

这个时候只能分享到一个群里,也就是templatePart。


推荐阅读