PIXELHUE
us English
  • us English
  • 简体中文
  1. 5 Layer
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
      • 6.1.2 Save Preset
      • 6.1.3 Load Preset
    • 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
      GET
  • 数据模型
    • Schemas
    • Root
  1. 5 Layer

5.2 Retrieve Layer Templates

GET
/v1/layers/template

请求参数

Query 参数

Body 参数text/plain

示例
"string"

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://prod-cn.your-api-server.com/v1/layers/template?moduleType=1&templateId=1' \
--header 'Content-Type: text/plain' \
--data-raw '"string"'

返回响应

🟢200OK
application/json
Body

示例
{
    "code": 0,
    "message": 0,
    "data": [
        {
            "layout": [
                {
                    "row": 0,
                    "column": 0,
                    "type": 0,
                    "isHide": 0
                }
            ],
            "margin": {
                "top": 0,
                "bottom": "string",
                "left": "string",
                "right": "string"
            },
            "cells": [
                {
                    "row": 0,
                    "column": 0,
                    "rowSpan": 0,
                    "columnSpan": 0,
                    "sourceType": 0,
                    "margin": {
                        "top": 0,
                        "bottom": "string",
                        "left": "string",
                        "right": "string"
                    }
                }
            ],
            "templateId": 0,
            "templateIdObj": {
                "id": 0,
                "type": 0,
                "moduleType": 0
            },
            "combinationData": [
                {
                    "row": 0,
                    "column": 0,
                    "rowSpan": 0,
                    "columnSpan": 0
                }
            ],
            "radius": [
                {
                    "sourceType": 0,
                    "minX": 0,
                    "minY": 0,
                    "maxX": 0,
                    "maxY": 0
                }
            ]
        }
    ]
}
修改于 2025-11-03 02:11:51
上一页
5.1 Retrieve Layer Information
下一页
5.3 Apply Layer Templates
Built with