GetSchema
Retrieves the schema and its field definitions in a specified instance.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SchemaId |
string |
Yes |
schema id |
profile |
| RequestId |
string |
No |
The request ID. |
03C67DAD-EB26-41D8-949D-9B0C470FB716 |
| InstanceId |
string |
Yes |
The instance ID. |
b0eb2742-f37e-4c67-82d4-25c651c1xxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
GetSchemaResponse |
||
| Data |
object |
The data. |
|
| InstanceId |
string |
The instance ID. |
5e0964fd-951c-4e45-b518-d09d4d2db8ca |
| Id |
string |
schema id |
profile |
| Description |
string |
The description. |
Customer profile |
| 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 |
Indicates whether the field is required. |
false |
| System |
boolean |
Indicates whether the field is a system field. |
false |
| Disabled |
boolean |
Indicates whether the field is disabled. |
false |
| Array |
boolean |
Indicates whether the field is an array. |
false |
| ReadOnly |
boolean |
Indicates 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. Format: YYYY-MM-DD HH:mm:ss.S. |
2021-07-14 10:48:43.0 |
| UpdatedTime |
integer |
The update time. Format: YYYY-MM-DD HH:mm:ss.S. |
2021-07-14 10:48:43.0 |
| Creator |
string |
The creator. |
tom |
| CreatedTime |
string |
The creation time. Format: YYYY-MM-DD HH:mm:ss.S. |
2021-07-14 10:48:43.0 |
| UpdatedTime |
string |
The last modification time. Format: YYYY-MM-DD HH:mm:ss.S. |
2021-07-14 10:48:43.0 |
| Deleted |
boolean |
Indicates whether the data is deleted. |
false |
| RequestId |
string |
The request ID. |
19D09CCC-F298-4124-849A-AFA217819011 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Code |
string |
The response code. |
OK |
| Message |
string |
The response message. |
Service abnormal, the instance 0418 is ceased. |
| Params |
array |
The response parameters. |
|
|
string |
The response parameters. |
None |
Examples
Success response
JSON format
{
"Data": {
"InstanceId": "5e0964fd-951c-4e45-b518-d09d4d2db8ca",
"Id": "profile",
"Description": "客户profile",
"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": "{}",
"DisplayOrder": 1,
"CreatedTime": 0,
"UpdatedTime": 0,
"Creator": "tom"
}
},
"CreatedTime": "2021-07-14 10:48:43.0",
"UpdatedTime": "2021-07-14 10:48:43.0",
"Deleted": false
},
"RequestId": "19D09CCC-F298-4124-849A-AFA217819011",
"HttpStatusCode": 200,
"Code": "OK",
"Message": "Service abnormal, the instance 0418 is ceased.",
"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.