/// <summary> /// Deletes custom document fields from an existing template document. Deletes custom document fields from an existing template document. /// </summary> ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="templateId">The ID of the template being accessed.</param><param name="documentId">The ID of the document being accessed.</param> <param name="documentFieldsInformation">TBD Description</param> /// <returns>8Task of ApiResponse (DocumentFieldsInformation)</returns> public async System.Threading.Tasks.Task<ApiResponse<DocumentFieldsInformation>> DeleteDocumentFieldsAsyncWithHttpInfo (string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation) { // verify the required parameter 'accountId' is set if (accountId == null) throw new ApiException(400, "Missing required parameter 'accountId' when calling DeleteDocumentFields"); // verify the required parameter 'templateId' is set if (templateId == null) throw new ApiException(400, "Missing required parameter 'templateId' when calling DeleteDocumentFields"); // verify the required parameter 'documentId' is set if (documentId == null) throw new ApiException(400, "Missing required parameter 'documentId' when calling DeleteDocumentFields"); var path_ = "/v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}/fields"; var pathParams = new Dictionary<String, String>(); var queryParams = new Dictionary<String, String>(); var headerParams = new Dictionary<String, String>(); var formParams = new Dictionary<String, String>(); var fileParams = new Dictionary<String, FileParameter>(); String postBody = null; // to determine the Accept header String[] http_header_accepts = new String[] { "application/json" }; String http_header_accept = Configuration.ApiClient.SelectHeaderAccept(http_header_accepts); if (http_header_accept != null) headerParams.Add("Accept", Configuration.ApiClient.SelectHeaderAccept(http_header_accepts)); // set "format" to json by default // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (accountId != null) pathParams.Add("accountId", Configuration.ApiClient.ParameterToString(accountId)); // path parameter if (templateId != null) pathParams.Add("templateId", Configuration.ApiClient.ParameterToString(templateId)); // path parameter if (documentId != null) pathParams.Add("documentId", Configuration.ApiClient.ParameterToString(documentId)); // path parameter postBody = Configuration.ApiClient.Serialize(documentFieldsInformation); // http body (model) parameter // make the HTTP request IRestResponse response = (IRestResponse) await Configuration.ApiClient.CallApiAsync(path_, Method.DELETE, queryParams, postBody, headerParams, formParams, fileParams, pathParams); int statusCode = (int) response.StatusCode; if (statusCode >= 400) throw new ApiException (statusCode, "Error calling DeleteDocumentFields: " + response.Content, response.Content); else if (statusCode == 0) throw new ApiException (statusCode, "Error calling DeleteDocumentFields: " + response.ErrorMessage, response.ErrorMessage); return new ApiResponse<DocumentFieldsInformation>(statusCode, response.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (DocumentFieldsInformation) Configuration.ApiClient.Deserialize(response, typeof(DocumentFieldsInformation))); }
/// <summary> /// Deletes custom document fields from an existing template document. Deletes custom document fields from an existing template document. /// </summary> ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="templateId">The ID of the template being accessed.</param><param name="documentId">The ID of the document being accessed.</param> <param name="documentFieldsInformation">TBD Description</param> /// <returns>5DocumentFieldsInformation</returns> public DocumentFieldsInformation DeleteDocumentFields (string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation) { ApiResponse<DocumentFieldsInformation> response = DeleteDocumentFieldsWithHttpInfo(accountId, templateId, documentId, documentFieldsInformation); return response.Data; }
/// <summary> /// Deletes custom document fields from an existing template document. Deletes custom document fields from an existing template document. /// </summary> ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="templateId">The ID of the template being accessed.</param><param name="documentId">The ID of the document being accessed.</param> <param name="documentFieldsInformation">TBD Description</param> /// <returns>7Task of DocumentFieldsInformation</returns> public async System.Threading.Tasks.Task<DocumentFieldsInformation> DeleteDocumentFieldsAsync (string accountId, string templateId, string documentId, DocumentFieldsInformation documentFieldsInformation) { ApiResponse<DocumentFieldsInformation> response = await DeleteDocumentFieldsAsyncWithHttpInfo(accountId, templateId, documentId, documentFieldsInformation); return response.Data; }
/// <summary> /// Creates custom document fields in an existing envelope document. Creates custom document fields in an existing envelope document. /// </summary> ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="envelopeId">The envelopeId Guid of the envelope being accessed.</param><param name="documentId">The ID of the document being accessed.</param> <param name="documentFieldsInformation">TBD Description</param> /// <returns>5DocumentFieldsInformation</returns> public DocumentFieldsInformation CreateDocumentFields (string accountId, string envelopeId, string documentId, DocumentFieldsInformation documentFieldsInformation) { ApiResponse<DocumentFieldsInformation> response = CreateDocumentFieldsWithHttpInfo(accountId, envelopeId, documentId, documentFieldsInformation); return response.Data; }