Updated on 2022-10-13 GMT+08:00
Querying Templates

Querying Templates

Function Description

When submitting a service ticket, users need to enter the required information based on a template.

URI

GET /v1.0/servicerequest/case/template

Request

Request Parameters

Parameter

Mandatory

Type

Value Range

Description

businessTypeId

Yes

String

64

Specifies the problem type ID.

See Querying Service Ticket Problem Type to get the ID.

Request Example

businessTypeId=12312313

Response Message

Response Parameters

Table 1 Response parameters

Parameter

Type

Description

totalCount

Integer

Specifies the total number of templates.

templateList

List<Template>

Specifies the list of service ticket template information.

For details, see Table 2.

Table 2 templateList field data structure

Parameter

Type

Description

templateId

String

Specifies the template ID.

templateName

String

Specifies the template name.

templateContent

String

Specifies the template content.

Example Response

{
    "totalCount": 13,
    "templateList": [
        {
            "templateId": "123",
            "templateName": "Event",
            "templateContent": ""
        },
        {
            "templateId": "123",
            "templateName": "Quota",
            "templateContent": ""
        }
    ]
}

Status Code

For details about status codes, see Status Codes.

Error Code

For details about error codes, see Historical Error Codes.