> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Attribute

> This endpoint creates a new attribute

### Body

<ParamField body="attribute_name" type="string">
  The name of the attribute to be created.
</ParamField>

<ParamField body="attribute_type" type="string">
  The type of the attribute (e.g., string, number, boolean).
</ParamField>

<ParamField body="value" type="string">
  The value assigned to the attribute.
</ParamField>

<ParamField body="max_value" type="number" optional="true">
  The maximum value for the attribute, applicable only for numeric types.
</ParamField>

<ParamField body="min_value" type="number" optional="true">
  The minimum value for the attribute, applicable only for numeric types.
</ParamField>

<ParamField body="category" type="string" optional="true">
  The category this attribute belongs to.
</ParamField>

<ParamField body="description" type="string" optional="true">
  A brief description of the attribute.
</ParamField>

<ParamField body="modifiable" type="boolean">
  Indicates whether the attribute is modifiable after creation.
</ParamField>

<ParamField body="impact" type="string" optional="true">
  Describes the impact or significance of the attribute.
</ParamField>

### Response

<ResponseField name="attribute_name" type="string">
  The name of the created attribute.
</ResponseField>

<ResponseField name="attribute_type" type="string">
  The type of the created attribute.
</ResponseField>

<ResponseField name="value" type="string">
  The value assigned to the created attribute.
</ResponseField>

<ResponseField name="max_value" type="number">
  The maximum value for the created attribute, if applicable.
</ResponseField>

<ResponseField name="min_value" type="number">
  The minimum value for the created attribute, if applicable.
</ResponseField>

<ResponseField name="category" type="string">
  The category the created attribute belongs to, if any.
</ResponseField>

<ResponseField name="description" type="string">
  A brief description of the created attribute.
</ResponseField>

<ResponseField name="modifiable" type="boolean">
  Indicates whether the attribute is modifiable.
</ResponseField>

<ResponseField name="impact" type="string">
  The impact or significance of the created attribute, if described.
</ResponseField>

<ResponseField name="message" type="string">
  A confirmation message stating that the attribute has been successfully created.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --location --request POST 'https://api.stateset.com/v1/attributes' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Token <token>' \
  --data-raw '{
      "id": "em_1NXWPnCo6bFb1KQto6C8OWvE",
      "attribute_name": "Example Name",
      "attribute_type": "string",
      "value": "Example Value",
      "max_value": 100,
      "min_value": 10,
      "category": "Example Category",
      "description": "This is a sample attribute for demonstration.",
      "modifiable": true,
      "impact": "High"
  }'
  ```
</RequestExample>
