Set Profile
1. API Description
This API is used to set profile settings. The number of split screens for the default profile cannot be changed (it must always be 1).
Request mode: POST [ip]/api/profile/set
| Administrator Rights | Login Authentication |
|---|---|
| No | Yes |
2. Input Parameters
| Parameter | Type | Description |
|---|---|---|
| id | Int | Profile ID |
| config | Struct | Profile Configuration. Each member in the structure can be configured individually. |
3. Output Parameters
| Parameter | Type | Description |
|---|---|---|
| status | Int | Status code |
4. Example
Configure the position and size of picture-in-picture for profile with ID=2
Input Example
{
"id": 2,
"config": {
"pip": {
"mode": 0,
"scale": 0.49,
"x": 0.153,
"y": 0.413
}
}
}
Output Example
{
"status": 0
}