> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mapp.com/llms.txt
> Use this file to discover all available pages before exploring further.
# Create attribute definitions
> Creates a new data field (custom user attribute) where information about users can be stored. With the standard setup, you are permitted to create a limited number of custom attributes with different data types.
Each custom user attribute has a unique name. If an attribute is no longer needed, it may be archived. Please contact your customer support representative if you need to delete an attribute.
Request body example:
[{
"name": "attributename",
"type": "STRING",
"enumerationValues":
[
"value1",
"value2",
"value3"
],
"active": "true"
}]
## OpenAPI
````json POST /meta/createAttributeDefinitions
{
"openapi": "3.0.4",
"info": {
"title": "Engage public API",
"version": "1"
},
"servers": [
{
"url": "https://your-engage-domain.com/api/rest"
}
],
"tags": [
{
"name": "Address Attributes"
},
{
"name": "Async"
},
{
"name": "Audit Log"
},
{
"name": "Automation"
},
{
"name": "Blacklist"
},
{
"name": "CMS (legacy)"
},
{
"name": "CMS Blocks"
},
{
"name": "CMS Frameworks"
},
{
"name": "CMS Messages"
},
{
"name": "CMS Templates"
},
{
"name": "Contact"
},
{
"name": "Content"
},
{
"name": "Coupon"
},
{
"name": "Draft Message"
},
{
"name": "Ecommerce"
},
{
"name": "Group"
},
{
"name": "Group Attributes"
},
{
"name": "Landing Page"
},
{
"name": "Member Attributes"
},
{
"name": "Membership"
},
{
"name": "Message"
},
{
"name": "Meta"
},
{
"name": "Mobile Push"
},
{
"name": "Prepared Message"
},
{
"name": "Process"
},
{
"name": "Profile Attributes"
},
{
"name": "Related Data"
},
{
"name": "Segmentation"
},
{
"name": "System"
},
{
"name": "System User"
},
{
"name": "Usage Statistics"
},
{
"name": "User"
},
{
"name": "Whiteboard"
}
],
"paths": {
"/meta/createAttributeDefinitions": {
"post": {
"tags": [
"Meta"
],
"summary": "Create attribute definitions",
"description": "Creates a new data field (custom user attribute) where information about users can be stored. With the standard setup, you are permitted to create a limited number of custom attributes with different data types.[{
\"name\": \"attributename\",
\"type\": \"STRING\",
\"enumerationValues\":
[
\"value1\",
\"value2\",
\"value3\"
],
\"active\": \"true\"
}]",
"operationId": "createAttributeDefinitions",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AttributeDefinition"
}
}
}
},
"x-bodyName": "body"
},
"responses": {
"204": {
"description": "",
"content": {
"application/json": {}
}
},
"400": {
"description": "",
"content": {
"application/json": {}
}
}
}
}
}
},
"components": {
"schemas": {
"AttributeDefinition": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"enum": [
"BOOLEAN",
"DATE",
"NUMBER",
"STRING"
],
"type": "string"
},
"enumerationValues": {
"type": "array",
"items": {
"type": "string"
}
},
"active": {
"type": "boolean",
"default": false
}
}
}
}
}
}
````