Specify the Profile URL in RPS (Redirection and Provisioning Service) for a
device.
Request Parameters
Table 1. Header Parameters
Parameter |
Required |
Type |
Description |
Authorization |
Yes |
String |
The valid access token for making API calls. The format should
be Bearer {access_token}. |
Table 2. Body Parameters
Parameter |
Required |
Type |
Description |
sn |
Yes |
String |
The SN (Serial Number) of this device. |
profileUrl |
Yes |
String |
The profile URL of this device. |
Response Parameters
Parameter |
Type |
Description |
data |
String |
The result of the API request. |
status |
String |
The result of the API request. |
requestId |
String |
The unique ID of the request, which can be used to quickly
locate the request. |
Examples
- Request example
- Specify the Profile URL for the device with SN "6757D3317995xxxx"
-
POST /device/openapi/v1/rps/profile HTTP/1.1
Host: milesight.demo.com
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InllYXN0b25lLWRlZmF1bHQta2V5LWlkIn0.eyJncmFudF90eXBlIjoiY2xpZW50X2NyZWRlbnRpYWxzIiwic2NvcGUiOlsib3BlbmFwaSJdLCJjbGllbnRfZXh0Ijp7ImFwcF9pZCI6IjE3MzY5NTQ4MDE3MTMzMjgxMzAifSwiZXhwIjoxNzAzMjEzMDk4LCJhdXRob3JpdGllcyI6WyJST0xFX0NMSUVOVCJdLCJqdGkiOiJiYjJjN2U4Yy03NGQwLTQ4NjEtODE3MS1iYTc0NWRlMGY0NmQiLCJjbGllbnRfaWQiOiI4OTNkNzdjNy1mMGNiLTRmMzQtOWNhMS03YzJhNGNmMTEzNDgiLCJ0cyI6MTcwMzIwOTQ5ODMzNH0
Content-Type: application/json
{
"sn": "6757D3317995xxxx",
"profileUrl": "https://www.demo.com/"
}
- Response example
-
HTTP/1.1 200 OK
{
"data": "success",
"status": "Success",
"requestId": "768acf43e1e492a881b7fdb8721861e3"
}