Skip to content

Enable or disable window grouping

Request method and path

html
POST http://localhost:[Port]/openapi/window/group/enable?ticket=[OpenApiTicket]
html
POST http://localhost:[Port]/openapi/window/group/disable?ticket=[OpenApiTicket]

Interface Description

Enable or disable grouping of operation windows.

Request parameter

Tip

  1. A single operation passes the index keyword, with a value that uniquely identifies the window group.
  2. Batch operation passes the indexes keyword, with a value of an array that uniquely identifies the window group.
  3. iChoose either indexes or indexes according to the operation method.
  4. The required parameters for enabling and disabling operations are consistent, with the difference being that the requested path is different.
Parameter NameRequiredExampletypeExplanation
indexesY[1,2,9]arrayUnique identifier array for window grouping.
indexY9numberThe unique identifier for window grouping can be obtained in Get Window Grouping.

Request parameter example

json
{
  "index":9
}
json
{
  "indexes":[1,2,9]
}

Return data

Successful Response Example

json
{
  "code": "00000",
  "message": "Success",
  "data": {
    "status": "success",
    "errorCode": "",
    "errorMsg": "",
    "result": {}
  }
}

Example of failed response


Failed to call interface

When the interface response status code is not 00000, the interface call fails. The specific reasons for interface call errors can be found in the Interface Response Status Code Information Comparison Table for querying.

json
{
  "code": "00001",
  "message": "Unknown error occurred, please provide feedback to official customer service!",
  "data": {}
}

This operation failed

json
{
  "code": "00000",
  "message": "Success",
  "data": {
    "status": "failed",
    "errorCode": "E00",
    "errorMsg": "The format of parameter (xxx) is incorrect!",
    "result": {}
  }
}

Operation failure errorCode error code information comparison table

Error codeReason for error
E00The format of parameter (xxx) is incorrect!
E01Parameter missing window grouping unique identifier index or indexes
E02The unique identifier index value for window grouping is illegal!
E03The index must be a positive integer between 1 and 1000.