200 Active published person custom-field schema.{
"allOf": [
{
"type": "object",
"required": [
"success"
],
"properties": {
"success": {
"type": "boolean"
},
"data": {},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"details": {}
}
},
"meta": {
"type": "object",
"properties": {
"lastEvaluatedKey": {
"type": "string"
},
"hasMore": {
"type": "boolean"
}
}
}
}
},
{
"type": "object",
"properties": {
"data": {
"type": "object",
"required": [
"businessId",
"entityType",
"schemaVersion",
"fields",
"published",
"publishedAt",
"active",
"createdBy",
"createdAt",
"updatedBy",
"updatedAt",
"version"
],
"properties": {
"businessId": {
"type": "string"
},
"entityType": {
"type": "string",
"enum": [
"person"
]
},
"schemaVersion": {
"type": "integer",
"minimum": 1
},
"sourceSchemaVersion": {
"type": "integer",
"minimum": 1
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"fieldId",
"key",
"label",
"type",
"required",
"sensitivity",
"archived",
"order"
],
"additionalProperties": false,
"properties": {
"fieldId": {
"type": "string",
"description": "Stable identifier used as the key in entity value maps."
},
"key": {
"type": "string",
"description": "Stable integration-facing key; immutable after creation.",
"pattern": "^[a-z][a-z0-9_]*$"
},
"label": {
"type": "string",
"maxLength": 200
},
"helpText": {
"type": "string",
"maxLength": 500
},
"type": {
"type": "string",
"enum": [
"text",
"textarea",
"number",
"date",
"boolean",
"select",
"multiselect"
]
},
"required": {
"type": "boolean"
},
"sensitivity": {
"type": "string",
"enum": [
"standard",
"pii",
"restricted"
]
},
"constraints": {
"type": "object",
"additionalProperties": false,
"properties": {
"min": {
"type": "number",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"max": {
"type": "number",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"minLength": {
"type": "integer",
"minimum": 0
},
"maxLength": {
"type": "integer",
"minimum": 0,
"maximum": 32768
},
"pattern": {
"type": "string"
},
"options": {
"type": "array",
"items": {
"type": "string",
"maxLength": 512
}
},
"minItems": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"maxItems": {
"type": "integer",
"minimum": 0,
"maximum": 100
}
}
},
"defaultValue": {
"oneOf": [
{
"type": "string"
},
{
"type": "number",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"archived": {
"type": "boolean"
},
"order": {
"type": "integer",
"minimum": 0
}
}
}
},
"published": {
"type": "boolean"
},
"publishedAt": {
"type": "string",
"format": "date-time",
"nullable": true
},
"active": {
"type": "boolean"
},
"createdBy": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedBy": {
"type": "string"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"version": {
"type": "integer",
"description": "Optimistic-lock version, distinct from schemaVersion.",
"minimum": 0
}
}
}
}
}
]
}