POST api/UserWatch/AddToWatchList

Request Information

URI Parameters

None.

Body Parameters

Collection of AddUserWatch
NameDescriptionTypeAdditional information
UserId

integer

None.

DataImporterId

integer

None.

WatchType

string

None.

Tag

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "UserId": 1,
    "DataImporterId": 2,
    "WatchType": "sample string 3",
    "Tag": "sample string 4"
  },
  {
    "UserId": 1,
    "DataImporterId": 2,
    "WatchType": "sample string 3",
    "Tag": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAddUserWatch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infovores.Models">
  <AddUserWatch>
    <DataImporterId>2</DataImporterId>
    <Tag>sample string 4</Tag>
    <UserId>1</UserId>
    <WatchType>sample string 3</WatchType>
  </AddUserWatch>
  <AddUserWatch>
    <DataImporterId>2</DataImporterId>
    <Tag>sample string 4</Tag>
    <UserId>1</UserId>
    <WatchType>sample string 3</WatchType>
  </AddUserWatch>
</ArrayOfAddUserWatch>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResult
NameDescriptionTypeAdditional information
Response

boolean

None.

ReturnCode

integer

None.

Message

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": true,
  "ReturnCode": 2,
  "Message": "sample string 3",
  "Result": {}
}

application/xml, text/xml

Sample:
<ApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infovores.Models">
  <Message>sample string 3</Message>
  <Response>true</Response>
  <Result />
  <ReturnCode>2</ReturnCode>
</ApiResult>