POST media/upload/{token}/{PostType}/{PostID}/{chatid}/{descr}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

string

Required

PostType

integer

Required

PostID

globally unique identifier

Required

chatid

integer

Required

descr

string

Default value is

Body Parameters

None.

Response Information

Resource Description

ResponseContentModel
NameDescriptionTypeAdditional information
data

Collection of ContentModel

None.

meta

meta

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "name": "sample string 1",
      "width": 1,
      "height": 1,
      "type": 1,
      "thumb": "sample string 2"
    },
    {
      "name": "sample string 1",
      "width": 1,
      "height": 1,
      "type": 1,
      "thumb": "sample string 2"
    }
  ],
  "meta": {
    "code": 1,
    "detail": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<ResponseContentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/connecttierWebAPI.Models">
  <data>
    <ContentModel>
      <height>1</height>
      <name>sample string 1</name>
      <thumb>sample string 2</thumb>
      <type>1</type>
      <width>1</width>
    </ContentModel>
    <ContentModel>
      <height>1</height>
      <name>sample string 1</name>
      <thumb>sample string 2</thumb>
      <type>1</type>
      <width>1</width>
    </ContentModel>
  </data>
  <meta>
    <code>1</code>
    <detail>sample string 2</detail>
  </meta>
</ResponseContentModel>