PIXELHUE
us English
  • us English
  • 简体中文
  1. 6.1 v1
PIXELHUE
us English
  • us English
  • 简体中文
  • API User Guide
  • 1 Authentication
    • 1.1 User Login
      POST
    • 1.2 Read Node Public Information
      GET
  • 2 Device
    • 2.1 Read Node Information
      GET
    • 2.2 Factory Reset
      PUT
    • 2.3 Set Transition Effect
      PUT
    • 2.4 Set Swap
      PUT
    • 2.5 Read Node Monitoring Status
      GET
  • 3 Connector
    • 3.1 Read Connector Details
      GET
    • 3.2 Set Output Mapping
      PUT
    • 3.3 Set Image Quality
      PUT
  • 4 Screen
    • 4.1 v1
      • 4.1.1 FTB
      • 4.1.2 Freeze
      • 4.1.3 Take
      • 4.1.4 Cut
    • 4.2 v2
      • 4.2.1 Retrieve Screen Information
      • 4.2.2 Freeze
      • 4.2.3 FTB
      • 4.2.4 Cut
      • 4.2.5 Take
  • 5 Layer
    • 5.1 Retrieve Layer Information
      GET
    • 5.2 Retrieve Layer Templates
      GET
    • 5.3 Apply Layer Templates
      PUT
    • 5.4 Set Layer Source
      PUT
    • 5.5 Select Layer
      PUT
  • 6. Preset
    • 6.1 v1
      • 6.1.1 Edit Preset
        PUT
      • 6.1.2 Save Preset
        PUT
      • 6.1.3 Load Preset
        PUT
    • 6.2 v2
      • 6.2.1 Retrieve Preset Details
      • 6.2.2 Create Preset
      • 6.2.3 Load Preset
      • 6.2.4 Rename Preset
      • 6.2.5 Delete Preset
  • 7 Gallery
    • 7.1 Retrieve Image Details
  • 数据模型
    • Schemas
    • Root
  1. 6.1 v1

6.1.2 Save Preset

PUT
/v1/preset/create-assign

请求参数

Header 参数

Body 参数application/json

示例
{
    "namePrefix": "string",
    "presetIdObj": {
        "id": 0,
        "sceneType": 0
    },
    "keyPosition": [
        0
    ],
    "name": "string"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://prod-cn.your-api-server.com/v1/preset/create-assign' \
--header 'Content-Type: application/json' \
--data-raw '{
    "namePrefix": "string",
    "presetIdObj": {
        "id": 0,
        "sceneType": 0
    },
    "keyPosition": [
        0
    ],
    "name": "string"
}'

返回响应

🟢200OK
application/json
Body

示例
{
    "code": 0,
    "message": "string",
    "data": [
        {
            "presetId": 0,
            "presetIdObj": {
                "id": 0,
                "sceneType": "string"
            },
            "general": {
                "name": "string"
            },
            "screens": [
                {
                    "screenId": 0,
                    "screenIdObj": {
                        "id": 0,
                        "type": 0
                    },
                    "general": {
                        "name": "string"
                    },
                    "mosaic": {
                        "type": 0,
                        "splice": {
                            "row": 0,
                            "column": 0
                        },
                        "window": {
                            "x": 0,
                            "y": 0,
                            "width": 0,
                            "height": 0
                        },
                        "outputs": [
                            {
                                "interfaceId": 0,
                                "pos": {
                                    "x": 0,
                                    "y": 0,
                                    "width": 0,
                                    "height": 0
                                },
                                "crop": {
                                    "x": 0,
                                    "y": 0,
                                    "width": 0,
                                    "height": 0
                                }
                            }
                        ]
                    },
                    "layers": [
                        {
                            "layerId": 0,
                            "layerIdObj": {
                                "id": 0,
                                "type": 0,
                                "sceneType": 0,
                                "attachScreenId": 0,
                                "attachScreenType": 0
                            },
                            "general": {
                                "name": "string"
                            },
                            "source": {
                                "general": {
                                    "sourceId": 0,
                                    "sourceType": 0
                                }
                            },
                            "window": {
                                "width": 0,
                                "height": 0,
                                "x": 0,
                                "y": 0
                            },
                            "enable": 0
                        }
                    ]
                }
            ],
            "keyPosition": [
                0
            ]
        }
    ]
}
修改于 2025-11-03 02:11:59
上一页
6.1.1 Edit Preset
下一页
6.1.3 Load Preset
Built with