简体   繁体   English

使用Java中的Rest API删除收件人

[英]Delete recipient with Rest API in Java

I am trying to delete a specific recipient from an envelope. 我正在尝试从信封中删除特定的收件人。 I wrote a little Java program and tried various DELETE requests, but I always get an error back: 我写了一个小的Java程序并尝试了各种DELETE请求,但是我总是收到一个错误:

<errorCode>INVALID_REQUEST_BODY</errorCode>
  <message>The request body is missing or improperly formatted. <signers xmlns=''> was not expected.</message>

I tried with this request: 我尝试了此请求:

baseURL + "/envelopes/" + envelopeId + "/recipients/"+recipientId;
and no body

as well as: 以及:

baseURL + "/envelopes/" + envelopeId + "/recipients/"
with body="<recipients xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.docusign.com/restapi\"><agents><agent><recipientId>"+recipientId+"</recipientId></agent></agents></recipients>";

Both without success. 两者都没有成功。

Have you tried referring to the DocuSign REST documentation regarding deleting recipients? 您是否尝试过参考DocuSign REST文档中有关删除收件人的内容?

https://www.docusign.com.au/p/RESTAPIGuide/RESTAPIGuide.htm#REST API References/Delete Recipients from an Envelope.htm?Highlight=delete recipient https://www.docusign.com.au/p/RESTAPIGuide/RESTAPIGuide.htm#REST API参考/从Envelope.htm删除收件人?Highlight =删除收件人

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM