Creates a sort script.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request headers. For more information, see Common request parameters.

Request syntax

POST /v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
appGroupIdentity String Path Yes search

The name or ID of the application.

appVersionId String Path Yes 1234567

The version number of the application.

Request body

Parameter

Type

Required

Description

scriptParams

Map

Yes

The parameters of the script to create.

scriptParams

Parameter

Type

Required

Description

scriptName

String

Yes

The name of the script.

type

String

Yes

The type of the script. Set the value to cava_script.

scope

String

Yes

The sort phase to which the script applies. Set the value to second_rank.

Response parameters

Parameter Type Example Description
requestId String ABCDEFGH

The ID of the request.

Examples

Sample requests

POST /v4/openapi/app-groups/my_app/apps/123456/sort-scripts

{
    "scriptName" : "script1",
    "type" : "cava_script",
    "scope" : "second_rank"
}

Sample success responses

XML format

<requestId>ABCDEFGH</requestId>

JSON format

{
    "requestId": "ABCDEFGH"
}

Error codes

For a list of error codes, visit the API Error Center.