Create Attribute

SecurityOAuth2
Request
header Parameters
x-api-key
string
tenant-id
string
Content-Type
string
Default: application/json
Request Body schema: application/json
optional
attribute_name
required
string
allowed_values
required
Array of strings
attribute_type
required
string
Enum: "STRING" "NUMBER" "ENUM" "BOOLEAN" "MAP"
attribute_entity_type
string
Enum: "SHIPMENT" "ADDRESS" "PRODUCT"
merchants
Array of strings
Responses
201
post/attributes
Request samples
application/json
{
  • "attribute_name": "string",
  • "allowed_values": [
    ],
  • "attribute_type": "STRING",
  • "attribute_entity_type": "SHIPMENT",
  • "merchants": [
    ]
}
Response samples
application/json
{
  • "custom_attribute_id": "string",
  • "attribute_name": "string",
  • "allowed_values": [
    ],
  • "attribute_type": "STRING",
  • "attribute_entity_type": "SHIPMENT",
  • "merchants": [
    ]
}