Skip to main content
POST
/
api
/
custom-attributes
Create custom attribute
curl --request POST \
  --url http://localhost:3000/api/custom-attributes \
  --header 'Content-Type: application/json' \
  --data '
{
  "displayName": "Customer Age",
  "type": "number",
  "description": "Age of the customer in years"
}
'

Body

application/json
displayName
string
required
Example:

"Customer Age"

type
enum<string>
required
Available options:
text,
number,
boolean,
date,
phone_number,
email,
url
Example:

"number"

description
string
Example:

"Age of the customer in years"

Response

Custom attribute created successfully