POST api/mobile/RenameDescriptor

Request Information

URI Parameters

None.

Body Parameters

RenameRequestModel
NameDescriptionTypeAdditional information
Name

string

None.

M2M_DescriptorID

integer

None.

MAC

string

None.

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "M2M_DescriptorID": 2,
  "MAC": "sample string 3",
  "Token": "sample string 4"
}

application/xml, text/xml

Sample:
<RenameRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nevoton.Rep.Models.RequestModels">
  <Token>sample string 4</Token>
  <M2M_DescriptorID>2</M2M_DescriptorID>
  <MAC>sample string 3</MAC>
  <Name>sample string 1</Name>
</RenameRequestModel>

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 'RenameRequestModel'.

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>