PUT
/
v1
/
attributes
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"
}'
{
    "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"
}

Body

id
string
This is the id of the attribute.
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

id
string
This is the id of the attribute.
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 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"
}'
{
    "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"
}