public SignatureEnvelopeFieldResponse AddEnvelopeField(string envelopeId, string documentId, string recipientId, string fieldId, SignatureEnvelopeFieldSettings fieldSettings) { var template = SignatureApiUriTemplates.BuildUriTemplate(SignatureApiUriTemplates.AddEnvelopeField); var parameters = new NameValueCollection { {"userId", UserId}, {"envelopeId", envelopeId}, {"documentId", documentId}, {"recipientId", recipientId}, {"fieldId", fieldId} }; var content = HttpContentNetExtensions.CreateJsonNetDataContract(fieldSettings); var response = SubmitRequest<SignatureEnvelopeFieldResponse>(template, parameters, "POST", content); return response; }
public SignatureEnvelopeFieldResponse UpdateSignatureTemplateField(string templateId, string documentId, string fieldId, SignatureEnvelopeFieldSettings fieldSettings) { var template = SignatureApiUriTemplates.BuildUriTemplate(SignatureApiUriTemplates.ModifyTemplateField); var parameters = new NameValueCollection { { "userId", UserId }, { "templateId", templateId }, { "documentId", documentId }, { "fieldId", fieldId } }; var content = HttpContentNetExtensions.CreateJsonNetDataContract(fieldSettings); var response = SubmitRequest <SignatureEnvelopeFieldResponse>(template, parameters, "PUT", content); return(response); }