【问题标题】:How to Update Envelope Custom Fields of Docusign Envelope In process, with rest API in RoR如何更新 Docusign Envelope 的 Envelope 自定义字段,在 RoR 中使用 rest API
【发布时间】:2019-02-06 13:10:48
【问题描述】:

我正在尝试更新我已经发送的信封中的自定义字段。

请求网址:#https://demo.docusign.net/restapi/v2/accounts/1976929/envelopes/21d46fc6-8bbe-4315-b606-47cfd0ee0e3c/custom_fields>

请求正文:

"{\"textCustomFields\": [{\"name\":\"customer_email\",\"value\":\"new_email@new.com\",\"show\":\"true\",\"required\":\"true\"}]}"

回复:

{"textCustomFields"=>
[{"fieldId"=>"10198325521", "name"=>"customer_email", "show"=>"true",
 "required"=>"true", "value"=>"new_email@new.com", 
"errorDetails"=>
{"errorCode"=>"CUSTOM_FIELD_ALREADY_EXISTS", "message"=>"Field Name:
 customer_email"}}], "listCustomFields"=>[]}
  • 我正在尝试更新自定义字段“客户电子邮件”的值
  • 我得到的响应是自定义字段已经存在。
  • 如果信封被错误地发送到错误的电子邮件的用例,我们想用这封新电子邮件更新已经发送的信封并重新发送。

我正在使用 Ruby on Rails。

如果我最初发送的信封带有自定义文本字段值 old_email@email.com。 现在我想看到值更改为 new_email@email.com

【问题讨论】:

    标签: ruby-on-rails rest docusignapi


    【解决方案1】:

    您使用的是 PUT 还是 POST?应该是 PUT。

    另外,您只需要指定“FieldId”、“name”和“value”。

    {
      "textCustomFields": [{
        "fieldId": "10210399758",
        "name": "customer_email",
        "value": "new_email@new.com"
      }]
    } 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-31
      • 2023-02-04
      • 1970-01-01
      • 2021-04-26
      • 1970-01-01
      • 2022-11-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多