API v1 Documentation
Client API > Response
Client API > Contacts
Client API > Display
Client API > Environment
Client API > User
Management API > Action Class
Management API > Attribute Class
Management API > Contact Attribute Keys
Management API > Contact Attributes
Management API > Contacts
Management API > Me
Management API > People
Management API > Response
Management API > Storage
Management API > Survey
Management API > Webhook
Health
Create Attribute Class
Create a new Attribute Class by passing in its type as well as the name! Now just use them in your app and pass this value with a user & itβll be associated with it.
POST
/
api
/
v1
/
management
/
attribute-classes
curl --request POST \
--url http:///%7B{baseurl}%7D/api/v1/management/attribute-classes \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"environmentId": "{{environmentId}}",
"name": "My new Attribute",
"type": "code"
}'
{
"data": {
"archived": false,
"createdAt": "2024-04-23T11:21:38.155Z",
"description": null,
"environmentId": "clurwouax000azffxt7n5unn3",
"id": "clvcapx7v0000xz1zskcgf5k0",
"name": "My new Attribute",
"type": "code",
"updatedAt": "2024-04-23T11:21:38.155Z"
}
}
Headers
Body
application/json Β· object
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
curl --request POST \
--url http:///%7B{baseurl}%7D/api/v1/management/attribute-classes \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"environmentId": "{{environmentId}}",
"name": "My new Attribute",
"type": "code"
}'
{
"data": {
"archived": false,
"createdAt": "2024-04-23T11:21:38.155Z",
"description": null,
"environmentId": "clurwouax000azffxt7n5unn3",
"id": "clvcapx7v0000xz1zskcgf5k0",
"name": "My new Attribute",
"type": "code",
"updatedAt": "2024-04-23T11:21:38.155Z"
}
}