Entity Information

Data type: AttributeDefinition, fields list

 

URL: /api/attributedefinitions

HTTP Method: POST

Description

Create new attribute definition for default division.

 

URL: /api/{divisionId}/attributedefinitions

HTTP Method: POST

Description

Create new attribute definition for division with Id = {divisionId}.

 

To create new Attribute Definition using the Trakopolis API server you need to pass JSON or XML serialized object with following properties:

  • AttributeName: Name of attribute definition. Should be unique within division for entity type;
  • ValueType: Type of value. Possible values;
  • EntityType: Type of entity. Possible values;
  • ListValues: Optional. List of possible values. Uses only for attribute definition with type "List".

JSON-based request example:

{
   "AttributeName": "Test attribute definition",
   "ValueType": "List",
   "EntityType": "Asset",
   "ListValues": [
     {"Value": "Test value 1", "Order": 1},
     {"Value": "Test value 2", "Order": 2}
   ]
 }