POST api/General/AddImage

Request Information

URI Parameters

None.

Body Parameters

Collection of ImageModel
NameDescriptionTypeAdditional information
UserID

integer

None.

UserName

string

None.

AttachmentURL

string

None.

FileName

string

None.

Size

string

None.

filebase64

string

None.

FileType

string

None.

ErrorCode

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "userID": 1,
    "userName": "sample string 2",
    "attachmentURL": "sample string 3",
    "fileName": "sample string 4",
    "size": "sample string 5",
    "filebase64": "sample string 6",
    "fileType": "sample string 7",
    "errorCode": 8
  },
  {
    "userID": 1,
    "userName": "sample string 2",
    "attachmentURL": "sample string 3",
    "fileName": "sample string 4",
    "size": "sample string 5",
    "filebase64": "sample string 6",
    "fileType": "sample string 7",
    "errorCode": 8
  }
]

application/xml, text/xml

Sample:
<ArrayOfImageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SelfHub.API.Models">
  <ImageModel>
    <AttachmentURL>sample string 3</AttachmentURL>
    <ErrorCode>8</ErrorCode>
    <FileName>sample string 4</FileName>
    <FileType>sample string 7</FileType>
    <Size>sample string 5</Size>
    <UserID>1</UserID>
    <UserName>sample string 2</UserName>
    <filebase64>sample string 6</filebase64>
  </ImageModel>
  <ImageModel>
    <AttachmentURL>sample string 3</AttachmentURL>
    <ErrorCode>8</ErrorCode>
    <FileName>sample string 4</FileName>
    <FileType>sample string 7</FileType>
    <Size>sample string 5</Size>
    <UserID>1</UserID>
    <UserName>sample string 2</UserName>
    <filebase64>sample string 6</filebase64>
  </ImageModel>
</ArrayOfImageModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.