Method PostCaseAttachment

Summary

Add Case Attachments

Remarks

Add file attachments to a Code Enforcement Case. This supports uploading multiple files of any type.

If any file was not successful than the ErrorCode in OutputParms will be "0409".

A row is returned for each file uploaded. If the row has an ErrorCode of "0500" then the ErrorMessage will indicate why it did not upload the file.

Parameters

TypeDescription
System.String Case Year
System.String Case Number

Example

POST http://localhost/FusionServices/v3/Naviline/CodeEnforcement/CaseAttachment/14/408

Sample Responses

Sample Code

using System.Net;

string uri = "http://localhost/FusionServices/v3/Naviline/CodeEnforcement/CaseAttachment/14/408";
System.Collections.Specialized.NameValueCollection postParms = 
     new System.Collections.Specialized.NameValueCollection(); 

postParms.Add("caseYear",System.Web.HttpUtility.UrlEncode("14"));
postParms.Add("caseNumber",System.Web.HttpUtility.UrlEncode("408"));
string filename = "C:\Temp\file_5.txt";
using (WebClient req = new WebClient())
{
    byte[] responseBytes = wc.UploadFile(new Uri(uri), filename);
    string stringResult = Encoding.UTF8.GetString(responseBytes); 
    // TODO
}