POST
/
v1
/
attritbutes
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"
}'
{
  "attribute_name": "<string>",
  "attribute_type": "<string>",
  "value": "<string>",
  "max_value": 123,
  "min_value": 123,
  "category": "<string>",
  "description": "<string>",
  "modifiable": true,
  "impact": "<string>",
  "message": "<string>"
}

Body

attribute_name
string

The name of the attribute to be created.

attribute_type
string

The type of the attribute (e.g., string, number, boolean).

value
string

The value assigned to the attribute.

max_value
number

The maximum value for the attribute, applicable only for numeric types.

min_value
number

The minimum value for the attribute, applicable only for numeric types.

category
string

The category this attribute belongs to.

description
string

A brief description of the attribute.

modifiable
boolean

Indicates whether the attribute is modifiable after creation.

impact
string

Describes the impact or significance of the attribute.

Response

attribute_name
string

The name of the created attribute.

attribute_type
string

The type of the created attribute.

value
string

The value assigned to the created attribute.

max_value
number

The maximum value for the created attribute, if applicable.

min_value
number

The minimum value for the created attribute, if applicable.

category
string

The category the created attribute belongs to, if any.

description
string

A brief description of the created attribute.

modifiable
boolean

Indicates whether the attribute is modifiable.

impact
string

The impact or significance of the created attribute, if described.

message
string

A confirmation message stating that the attribute has been successfully created.

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"
}'