AddSchemaProperty

Updated at:

Adds a property to the schema of 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

SchemaId

string

Yes

schema id

profile

Property

object

No

The property.

DisplayName

string

No

The display name.

name

Description

string

No

The description.

-

Name

string

Yes

The display 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 property is required.

false

Disabled

boolean

No

Specifies whether the property is disabled.

False

Array

boolean

No

Specifies whether the property is an array.

false

ReadOnly

boolean

No

Specifies whether the property is read-only.

true

EditorType

string

No

The editor type.

textbox

Attributes

string

No

The extended attributes.

{"newName":"Xiaoju Charging-demo","appId":"69FRKB4193W8BYP0"}

DisplayOrder

integer

No

The display order in the list.

10

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

AddSchemaPropertyResponse

RequestId

string

The request ID.

BF268B34-09C2-43FD-BAC4-5D31EA633111

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

{
  "RequestId": "BF268B34-09C2-43FD-BAC4-5D31EA633111",
  "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.