Jetlun REST Web Service Interface

REST API: Device Management

Update name for device

Description: Update name for device

Method: POST

Arguments: myjetlun_id, mac, sn, name, api_key, timestamp, sign, format

Format: JSON, XML

Base URL: "http://api.myjetlun.com/v1/services/device/update_name "

This API will require a corresponding Content-Type header (set to "application/json" or "application/xml").

Curl example:

curl -X POST http://api.myjetlun.com/v1/services/device/update_name \
-H 'Content-Type: application/json' \

-d '{"control":{"name":"AM-0050","timestamp":"20120606114216","mac":"C8D2C1000470","api_key":"99918776","sn":"c8d2c300000000500000000000000000","myjetlun_id":"4e7164c569eccc2d8b000546","sign":"584a01817441a87f14a6523faa26e3f9"}}'

Example Post JSON Body:

"{"control":{"name":"AM-0050","timestamp":"20120606114216","mac":"C8D2C1000470",

"api_key":"99918776","sn":"c8d2c300000000500000000000000000",

"myjetlun_id":"4e7164c569eccc2d8b000546","sign":"584a01817441a87f14a6523faa26e3f9"}}"
			        

Example Post XML Body:

<xml> <control> <api_key>99918776</api_key> <timestamp>20120606114216</timestamp> <sign>584a01817441a87f14a6523faa26e3f9</sign> <myjetlun_id>4e7164c569eccc2d8b000546</myjetlun_id> <mac>C8D2C1000470</mac> <name>AM-0050</name> <sn>c8d2c300000000500000000000000000</sn> </control></xml>

Example Response:

{
“status”:“success”
}