CreateSchema

Updated at:

Creates a schema in a specified instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Id

string

No

schema id

profile

Description

string

No

The description.

-

Properties

array<object>

No

The list of properties.

object

No

The list of properties.

DisplayName

string

No

The display name of the agent.

Display name

Description

string

No

The version description.

-

Name

string

Yes

The name.

name

DataType

string

Yes

The data type.

string

Pattern

string

No

The regular expression validation rule.

*

PatternErrorMessage

string

No

The error message for regular expression validation.

Invalid format

MinLength

integer

No

The minimum length.

1

MaxLength

integer

No

The maximum length.

100

Minimum

number

No

The minimum numeric value.

1

Maximum

number

No

The maximum numeric value.

1

Required

boolean

No

Specifies whether the field is required.

false

Disabled

boolean

No

Specifies whether the field is disabled.

false

Array

boolean

No

Specifies whether the field is an array.

false

ReadOnly

boolean

No

Specifies whether the field is read-only.

true

EditorType

string

No

The editor type.

textbox

Attributes

string

No

The extended attributes.

{'Clusters': {'Description': 'The list of clusters.'}, 'ClusterIds': {'Description': 'The list of cluster IDs.'}}

DisplayOrder

integer

No

The display order in the list.

2

RequestId

string

No

The request ID.

7BEEA660-A45A-45E3-98CC-AFC65E715C23

InstanceId

string

Yes

The instance ID.

b0eb2742-f37e-4c67-82d4-25c651c1c450

Response elements

Element

Type

Description

Example

object

CreateSchemaResponse

Data

string

The data.

1ca2b084-6f0a-454b-9851-29768a9a5832

RequestId

string

The request ID.

9F766284-F103-4298-8EC5-19F9F9BE5522

HttpStatusCode

integer

The HTTP status code.

200

Code

string

The response code.

OK

Message

string

The response message.

None

Params

array

The response parameters.

string

The response parameters.

None

Examples

Success response

JSON format

{
  "Data": "1ca2b084-6f0a-454b-9851-29768a9a5832",
  "RequestId": "9F766284-F103-4298-8EC5-19F9F9BE5522",
  "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.