DocuSign REST API DELETE 方法需要正文

DocuSign REST API DELETE method requires a body

例如,要从您呼叫的签名组中删除成员:

/restapi/v2/accounts/1686083/signing_groups/{groupId}/users

并提供:

{
    "users": [
        {
            "userName": "sample string 1",
            "email": "sample string 2"
        }
    ]
}

正文

但是我的 REST 对象(在 ServiceNow 中)不允许我在使用 delete 方法时提供主体。我只是卡住了吗?

我认为没有其他方法可以使用 API 从 SigningGroup 中删除用户。您可以尝试将签名组中的用户更新为虚拟电子邮件,以便原始用户不会收到用于签名的电子邮件。有时 DS 管理员可以转到 WEBApp 并手动删除它,如果服务现在不允许 DS API 删除正文操作。

如果您在 ServiceNow 脚本化出站 REST 中使用 RestMessageV2,可以使用 setRequestBody 方法将请求正文设置为字符串:

Example in the docs here

var sm = new sn_ws.RESTMessageV2("Update user","post"); 
var body = "{ ...Message body content... }";
sm.setRequestBody(body);