---
title: "Create Attributes"
method: POST
path: "/client/attribute/create"
tags: ["Attributes"]
---

# Create Attributes

`POST /client/attribute/create`

## Request

- Base URL: `https://netcoreapi-main-prod-us.netcorein.com/v5`
- URL: `https://netcoreapi-main-prod-us.netcorein.com/v5/client/attribute/create`
- Auth: API key in header `api-key`

Use the Create Attributes API to add custom attributes to Netcore CE.

## Headers

- `api-key` string, required
- `Content-Type` string, required

## Request body

- object
  - `data` object[], required: A list of custom attributes you want to add, like age or gender. For each field, define its name, type (number, text, etc.), and other optional settings.
    - `attribute_name` string, required: Name of the attribute. The specification describes the allowed pattern as **(A-Za-z0-9_)**.
    - `attribute_category` string, required: Category of the attribute. Supported values specified are **custom**, **predicted**, and **calculated**.
    - `data_type` string, required: This is the data type of the attribute. The schema specifies **textline**, **date**, **int**, **decimal**, and **longtext**.
    - `map_to` string, required: System attribute name to which the custom attribute can be mapped. Use an empty string when no mapping is required.
    - `data_mask` string, required: It controls data masking. The specification describes the values as true, false, or an empty string.
    - `default_value` string, required: It is the default value for the attribute.
  - `notify_callback` object, required
    - `callback` object[], required
      - `url` string, required
      - `method` string, required: GET | POST
      - `headers` object, required
        - `Content-Type` string, required: application/json
        - `Authorization` string
      - `query_params` object
        - `param1` string, required
        - `param2` string, required
      - `body_params` object
        - `param3` string, required
        - `param4` string, required

## Response `200`

- object
  - `request_id` string, required
  - `description` string, required
  - `code` integer, required
  - `status` string, required
  - `data` string, required

## Other responses

- `400`
- `401`
- `500`

---

[API](https://skmtc.dev/netcorecloud/apis/attributes-api.md) - [All operations](https://skmtc.dev/netcorecloud/apis/attributes-api/llms.txt) - [OpenAPI document](https://skmtc.dev/netcorecloud/apis/attributes-api/revisions/7eaa40d0d249?raw)
