POST v2/cases/{caseId}/files
Upload and add a File to your case
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
caseId |
Id of service case |
integer |
Required |
Body Parameters
Your File
InitPro.Ida.Web.Api.Dto.FileName | Description | Type | Additional information |
---|---|---|---|
Name |
Name of File |
string |
Required |
Mime |
Mime type of File. Possible values: image/jpeg, image/png, application/pdf |
string |
Required Matching regular expression pattern: image/jpeg|image/png|application/pdf|image/heic|image/heif |
Image |
Invoice or picture |
Collection of byte |
Required |
CategoryKey |
Key of Category of File |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "Mime": "sample string 2", "Image": "QEA=", "CategoryKey": "sample string 3" }
application/xml, text/xml
Sample:
<File xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InitPro.Ida.Web.Api.Dto"> <CategoryKey>sample string 3</CategoryKey> <Image>QEA=</Image> <Mime>sample string 2</Mime> <Name>sample string 1</Name> </File>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.