def update_envelope_recipients(options={})
      content_type = {'Content-Type' => 'application/json'}
      content_type.merge(options[:headers]) if options[:headers]

      resend = options[:resend].present?
      uri = build_uri("/accounts/#{@acct_id}/envelopes/#{options[:envelope_id]}/recipients?resend_envelope=#{resend}")

      signers = options[:signers]
      signers.each do |signer|
       signer[:recipientId] = signer.delete(:recipient_id) if signer.key?(:recipient_id)
       signer[:clientUserId] = signer.delete(:client_user_id) if signer.key?(:client_user_id)
      end
      post_body = {
        signers: signers
      }.to_json

      http = initialize_net_http_ssl(uri)
      request = Net::HTTP::Put.new(uri.request_uri, headers(content_type))
      request.body = post_body

      response = http.request(request)
      JSON.parse(response.body)
    end
def update_envelope_recipients(options={})
      content_type = {'Content-Type' => 'application/json'}
      content_type.merge(options[:headers]) if options[:headers]

      resend = options[:resend].present?
      uri = build_uri("/accounts/#{@acct_id}/envelopes/#{options[:envelope_id]}/recipients?resend_envelope=#{resend}")

      signers = options[:signers]
      signers.each do |signer|
       signer[:recipientId] = signer.delete(:recipient_id) if signer.key?(:recipient_id)
       signer[:clientUserId] = signer.delete(:client_user_id) if signer.key?(:client_user_id)
      end
      post_body = {
        signers: signers
      }.to_json

      http = initialize_net_http_ssl(uri)
      request = Net::HTTP::Put.new(uri.request_uri, headers(content_type))
      request.body = post_body

      response = http.request(request)
      JSON.parse(response.body)
    end
Public: Update envelope recipients