POST /blueprintfields
Create a new blueprint field
/blueprintfields
POST
Create a new blueprint field
| Key | Type | Example | |
|---|---|---|---|
| authorization required | string |
"Bearer your-jwt-token"
|
| Key | Type | Example | Description |
|---|---|---|---|
| name required | string |
"user_email"
|
Field name
|
| type required | string |
"string"
|
Field data type
|
| description optional | string |
"User's email address"
|
Field description
|
| blueprint_guid optional | string |
"example-string"
|
Associated blueprint GUID
|
| required optional | boolean |
false
|
Whether this field is required
|
| default_value optional | string |
"example-value"
|
Default value for the field
|
| validation_rules optional | object |
{}
|
Validation rules for the field
|
| metadata optional | object |
{}
|
Additional metadata for the field
|
{
"_meta": {
"guid": "example-string",
"entity": "example-value",
"created": "example-value",
"modified": "example-value",
"updated": "example-value"
},
"name": "user_email",
"type": "string",
"description": "User's email address",
"blueprint_guid": "example-string",
"required": false,
"default_value": "example-value",
"validation_rules": {
"min_length": 5,
"max_length": 100,
"pattern": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
},
"metadata": {
"ui_component": "text-input",
"placeholder": "Enter your email"
}
}
{
"success": false,
"error": "HTTP_401",
"message": "Error response"
}
| Error Code | Description |
|---|---|
| HTTP_401 | HTTP 401 error |
| permission | description |
|---|---|
BearerAuth |
JWT access token obtained from login endpoint required |
Back to Blueprint Fields Return to the Blueprint Fields category to view other endpoints All API Categories Browse all available API categories