> ## 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.

# Update Attribute

> This endpoint updates a attribute

### Body

<ParamField body="id" type="string">
  This is the id of the attribute.
</ParamField>

<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="id" type="string">
  This is the id of the attribute.
</ResponseField>

<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 PUT 'https://api.stateset.com/v1/attributes' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Token <token>' \
  --data-raw '{
      "id": "2438cf38-4004-41d3-8c90-131735ff7d00",
      "type": "System Attribute",
      "name": "attribute 1",
      "description": "This is the attribute",
      "created_at": "2023-11-28T00:00:00.000000Z",
      "updated_at": "2023-11-28T00:00:00.000000Z"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
      "id": "2438cf38-4004-41d3-8c90-131735ff7d00",
      "type": "System Attribute",
      "name": "attribute 1",
      "description": "This is the attribute",
      "created_at": "2023-11-28T00:00:00.000000Z",
      "updated_at": "2023-11-28T00:00:00.000000Z"
  }

  ```
</ResponseExample>
