docusignapi - 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.
解决方案
您可以使用模板共享 API 共享模板
https://developers.docusign.com/esign-rest-api/reference/Templates/Templates/updateGroupShare
PUT /v2.1/accounts/{accountId}/templates/{templateId}/{templatePart}
这个时候只能分享到一个群里,也就是templatePart。
推荐阅读
- swift - shared() 运算符超时
- python - 比较两个 txt.files 的内容以查找已删除的行或 python 中的更改
- javascript - 反应功能组件中的事件监听器
- javascript - 尝试更改烧瓶应用程序的 CSS 中的背景渐变
- amazon-web-services - Kinesis 流同时有多个目的地
- html - 造型
邮件 CSS 中的标签和文本 - mysql - 如何为包含有序列表记录的 MySQL 表建模?
- css - 为什么“溢出-x:隐藏”也隐藏溢出-y?
- amazon-web-services - 如何在 AWS CloudFormation 部署中将参数作为文件传递?
- sql - 按月计算当前项目