Quickly Update Text Content

555

# Quickly Update Text Content

Path:

/api/program/program_name.vsn

Method: PUT

Content-type: application/json; charset=utf-8

API Description: This can be used to update the currently displayed text content, supporting single-line text and multi-line text paging as well as upward movement. From version 1.69.7 onwards, the A series supports font color updates (C series supports content updates but not font color). Other styles such as size and font cannot be updated. The content being updated reverts to the original upon program switching or restart.

Request
Refer to Definition of Program File Format for relevant fields.
Refer to Quickly Update Text and Text Color (A Series).

Example
Update text color (A series):

{
    "update":[
        {
            "who":{"x":0, "y":0},
            "textColor":"0xFFFF0000",
            "text":"qwewqewqwqe"
        },
        {
            "who":{"x":120, "y":0},
            "textColor":"0xFFFFFFFF",
            "text":"qwewqewqwqe"
        },
        {
            "who":{"x":0, "y":90},
            "textColor":"0xFFFFFFFF",
            "text":"qwewqewqwqe"
        }
    ]
}

Update text:

{
    "update":[
        {
            "who":{"x":0, "y":0},
            "text":"qwewqewqwqe"
        },
        {
            "who":{"x":120, "y":0},
            "text":"qwewqewqwqe"
        },
        {
            "who":{"x":0, "y":90},
            "text":"qwewqewqwqe"
        }
    ]
}