Create Field
POST
/field/createRequest
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
field_name
string
Field name
Must match regex ^[a-zA-Z_][a-zA-Z0-9_]{0,39}$
<= 40 characters
display_name
string
Display name
<= 40 characters
description
string
Description
<= 500 characters
field_type
enum<string>
Field type
Allowed values:
textsingle_selectmulti_selectcheckbox
value_type
enum<string>
Value type
Allowed values:
stringbool
options
array[string]
Optional values
Array elements must be unique and type must match value_type definition
default_value
string
optional
Example
{
"field_name": "string",
"display_name": "string",
"description": "string",
"field_type": "text",
"value_type": "string",
"options": [
"string"
],
"default_value": "string"
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
error
object (DutyError)
optional
code
enum<string>
Error code
Allowed values:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
Error description
data
object
optional
field_id
string
ID
field_name
string
Name
Example
Not configured
Last modified: 2 个月前