POST api/mobile/SetDescriptorParameters

Request Information

URI Parameters

None.

Body Parameters

TokenRequestModelWithParameters
NameDescriptionTypeAdditional information
Parameters

Collection of M2M_ParameterBase

None.

M2M_DescriptorID

integer

None.

MAC

string

None.

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Parameters": [
    {
      "Num": 1,
      "Value": "sample string 2"
    },
    {
      "Num": 1,
      "Value": "sample string 2"
    }
  ],
  "M2M_DescriptorID": 1,
  "MAC": "sample string 2",
  "Token": "sample string 3"
}

application/xml, text/xml

Sample:
<TokenRequestModelWithParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nevoton.Rep.Models.RequestModels">
  <Token>sample string 3</Token>
  <M2M_DescriptorID>1</M2M_DescriptorID>
  <MAC>sample string 2</MAC>
  <Parameters xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nevoton.Rep.Models">
    <d2p1:M2M_ParameterBase>
      <d2p1:Num>1</d2p1:Num>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:M2M_ParameterBase>
    <d2p1:M2M_ParameterBase>
      <d2p1:Num>1</d2p1:Num>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:M2M_ParameterBase>
  </Parameters>
</TokenRequestModelWithParameters>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TokenRequestModelWithParameters'.

Response Information

Resource Description

BaseResponseModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<BaseResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nevoton.Rep.Models.ResponseModels">
  <Message>sample string 2</Message>
  <Success>true</Success>
</BaseResponseModel>