POST
/
objects
/
{object_name}
/
attributes
curl --request POST \
  --url https://api.unifygtm.com/data/v1/objects/{object_name}/attributes \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "type": "Address",
  "api_name": "<string>",
  "display_name": "<string>",
  "is_required": true,
  "is_unique": true
}'
{
  "status": "success",
  "data": {
    "type": "Address",
    "api_name": "<string>",
    "display_name": "<string>",
    "is_required": true,
    "is_unique": true
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

object_name
string
required

Body

application/json

Definition of an attribute on a Unify object. Base properties that define an attribute on a Unify object.

Response

201
application/json

Response for a successful create operation.