POST api/addfile/{sessionID}/{corrType}/{corrID}

Add file to conversation

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sessionID

ID сессии (получается при логине)

string

Required

corrType

тип корреспондента: buyer, admin, support, user

string

Required

corrID

ID корреспондента

integer

Required

Body Parameters

None.

Response Information

Resource Description

AddFileResponse
NameDescriptionTypeAdditional information
retval

Return code (0 - ok, otherwise - error)

integer

None.

desc

Text description of the return code (error description)

string

None.

messageID

Message ID to which the file is attached

integer

None.

newname

File name in storage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "retval": 1,
  "desc": "sample string 2",
  "messageID": 3,
  "newname": "sample string 4"
}

application/xml, text/xml

Sample:
<addfile.response>
  <retval>1</retval>
  <desc>sample string 2</desc>
  <messageID>3</messageID>
  <newname>sample string 4</newname>
</addfile.response>