ListCommonTicketFields
Retrieves the ticket field types defined for an instance.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
GetSchemaResponse |
||
| Data |
object |
The data. |
|
| InstanceId |
string |
The instance ID. |
ccc-test |
| Id |
string |
The schema ID. |
ticketing |
| Properties |
object |
The list of fields. |
|
|
object |
The field. |
||
| DisplayName |
string |
The display name. |
Name |
| Description |
string |
The description. |
name |
| Name |
string |
The name. |
name |
| DataType |
string |
The data type. |
string |
| Pattern |
string |
The regular expression validation rule. |
^ |
| PatternErrorMessage |
string |
The error message for regular expression validation. |
Not a valid email address |
| MinLength |
integer |
The minimum length. |
1 |
| MaxLength |
integer |
The maximum length. |
10 |
| Minimum |
number |
The minimum numeric value. |
1 |
| Maximum |
number |
The maximum numeric value. |
10 |
| Required |
boolean |
Specifies whether the field is required. |
false |
| System |
boolean |
Specifies whether the field is a system field. |
false |
| Disabled |
boolean |
Specifies whether the field is disabled. |
false |
| Array |
boolean |
Specifies whether the field is an array. |
false |
| ReadOnly |
boolean |
Specifies whether the field is read-only. |
false |
| EditorType |
string |
The editor type. |
textbox |
| Attributes |
string |
The extended attributes. |
{} |
| DisplayOrder |
integer |
The display order in the list. |
1 |
| CreatedTime |
integer |
The creation time. The value is a UNIX timestamp in milliseconds. |
1703517780627 |
| UpdatedTime |
integer |
The update time. The value is a UNIX timestamp in milliseconds. |
1716211430928 |
| Creator |
string |
The creator. |
creator@ccc-test |
| CreatedTime |
string |
The creation time. The value is a UNIX timestamp in milliseconds. |
1703517780627 |
| UpdatedTime |
string |
The last modification time. The value is a UNIX timestamp in milliseconds. |
1716211430928 |
| RequestId |
string |
The request ID. |
30C7D235-DDCF-4C7F-A462-5E2598252C2B |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Code |
string |
The response code. |
OK |
| Message |
string |
The response message. |
None |
| Params |
array |
The list of error parameters. |
|
|
string |
The error parameter. |
None |
Examples
Success response
JSON format
{
"Data": {
"InstanceId": "ccc-test",
"Id": "ticketing",
"Properties": {
"key": {
"DisplayName": "姓名",
"Description": "name",
"Name": "name",
"DataType": "string",
"Pattern": "^",
"PatternErrorMessage": "不是有效的email地址",
"MinLength": 1,
"MaxLength": 10,
"Minimum": 1,
"Maximum": 10,
"Required": false,
"System": false,
"Disabled": false,
"Array": false,
"ReadOnly": false,
"EditorType": "textbox",
"Attributes": "{}\n",
"DisplayOrder": 1,
"CreatedTime": 1703517780627,
"UpdatedTime": 1716211430928,
"Creator": "creator@ccc-test"
}
},
"CreatedTime": "1703517780627",
"UpdatedTime": "1716211430928"
},
"RequestId": "30C7D235-DDCF-4C7F-A462-5E2598252C2B",
"HttpStatusCode": 200,
"Code": "OK",
"Message": "无",
"Params": [
"无"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | NotExists.InstanceId | The specified instance %s does not exist. | The specified call center instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.