Attributes Overview

Lidia PIM · API Reference · Attributes / Options & Properties

Managing options and properties in Lidia PIM

Define product and variant attributes using Properties, Options and Option Values. Discover category-specific requirements before building ingestion or PATCH payloads; distinguish a typed property from a variant-selectable option.

Metadata APIs: v2Schema discovery: v2
01 · Concepts

Properties, options and values

Properties

Typed product and variant attributes, such as a Bluetooth version or weight. Property definitions expose a key, display name and data type.

Options

Variant selection groups such as Color, Size or Storage. Each option may contain multiple allowed option values.

Option Values

Selectable entries belonging to a parent option, for example Black or White under Color.

Category Data Schema

Describes the properties accepted by a category, their required status and allowed values, and the available variant options.

Property DataTypeMeaning
0Text
1Number
2Boolean
3Date
4RichText
5List

The property type mapping above comes from the source documentation. Do not reuse it as an option-type enumeration without checking that endpoint’s schema.

02 · Endpoint map

Attribute API operations

OperationMethodPathLimit / 60s (endpoint / AppKey)
CreateOptionPOST/api/v2/options300 / 30
UpdateOptionPATCH/api/v2/options600 / 60
CreateOptionValuePOST/api/v2/options/values600 / 60
UpdateOptionValuePATCH/api/v2/options/values600 / 60
CreatePropertyPOST/api/v2/properties300 / 30
UpdatePropertyPATCH/api/v2/properties600 / 60
GetOptionsPOST/api/v2/query/options1200 / 120
GetPropertiesPOST/api/v2/query/properties1200 / 120
Find Category Data SchemaPOST/api/v2/categories/dataschema600 / 60

Limits are 60-second sliding-window quotas; both endpoint-level and per-AppKey thresholds apply.

03 · Request conventions

Credentials, PATCH and lifecycle

Request typeRequired fields / rules
All PIM requestsClientId and AppKey at the JSON body root, not as authentication headers.
Metadata commandsEnvironment, SessionId, UserToken in addition to credentials, as specified for the endpoint.
Query, search and poolNo metadata-command fields required by the supplied specification; use ClientId / AppKey.
TracingOptional ThreadId; the service generates one if omitted.
JSON conventionUse exact PascalCase request fields such as CategoryId, SortOrder, Skip and Take.
  • Create/update commands are metadata operations; include Environment, SessionId and UserToken as well as credentials.
  • Only supplied fields are changed by PATCH; omitted fields are preserved. Pass the relevant ID in the request body.
  • The documented API does not expose direct DELETE operations for Option or Property definitions; entity status must not be confused with a deletion API.
Related entities

PropertyId, OptionId and allowed values used in product/variant payloads should come from the category schema, not be guessed.

04 · Quick start

Create, update and query

POST /api/v2/options · CreateOption
{
  "ClientId": "YOUR_CLIENT_ID",
  "AppKey": "YOUR_APP_KEY",
  "Environment": "production",
  "SessionId": "YOUR_SESSION_ID",
  "UserToken": "YOUR_USER_TOKEN",
  "Name": "Color",
  "Code": "OPT-COLOR",
  "DisplayName": "Product Color",
  "DataType": 2,
  "Values": [
    {
      "Name": "Black",
      "Code": "VAL-BLK",
      "SortOrder": 1
    },
    {
      "Name": "White",
      "Code": "VAL-WHT",
      "SortOrder": 2
    }
  ]
}
POST /api/v2/options/values · CreateOptionValue
{
  "ClientId": "YOUR_CLIENT_ID",
  "AppKey": "YOUR_APP_KEY",
  "Environment": "production",
  "SessionId": "YOUR_SESSION_ID",
  "UserToken": "YOUR_USER_TOKEN",
  "OptionId": 2,
  "Name": "Midnight Blue",
  "Code": "VAL-BLU",
  "SortOrder": 3
}
POST /api/v2/properties · CreateProperty
{
  "ClientId": "YOUR_CLIENT_ID",
  "AppKey": "YOUR_APP_KEY",
  "Environment": "production",
  "SessionId": "YOUR_SESSION_ID",
  "UserToken": "YOUR_USER_TOKEN",
  "Key": "Bluetooth_Version",
  "DisplayName": "Bluetooth Version",
  "DataType": 0,
  "DefaultValue": "5.3",
  "SortOrder": 5
}
PATCH /api/v2/properties · UpdateProperty
{
  "ClientId": "YOUR_CLIENT_ID",
  "AppKey": "YOUR_APP_KEY",
  "Environment": "production",
  "SessionId": "YOUR_SESSION_ID",
  "UserToken": "YOUR_USER_TOKEN",
  "PropertyId": 44,
  "DisplayName": "Wireless Connection Version",
  "SortOrder": 3,
  "Status": 1
}
POST /api/v2/query/options · GetOptions
{
  "ClientId": "YOUR_CLIENT_ID",
  "AppKey": "YOUR_APP_KEY",
  "OptionIds": [
    2
  ],
  "Status": 1
}

For the exact accepted field set and any nested response structure, use the corresponding endpoint reference.

05 · Integration workflow

Category schema determines valid attributes

  1. 01 · SelectChoose categoryDetermine the target CategoryId.
  2. 02 · DiscoverFind data schemaGet properties, required flags, allowed values and option values.
  3. 03 · MapBuild payloadTranslate ERP/PIM source fields into supported PropertyId / OptionId values.
  4. 04 · SubmitValidate and sendCreate/patch metadata or submit batch data according to the operation.
POST /api/v2/categories/dataschema
{
  "ClientId": "YOUR_CLIENT_ID",
  "AppKey": "YOUR_APP_KEY",
  "Environment": "production",
  "SessionId": "YOUR_SESSION_ID",
  "UserToken": "YOUR_USER_TOKEN",
  "CategoryId": 12
}
Required property constraints

The schema can report isMandatory and allowedValues. Validate your payload against these rules before sending it.

06 · Operations

Response and error handling

Standard response envelope · ServiceResponse<T> (illustrative)
{
  "result": [],
  "resultCount": 0,
  "totalCount": 0,
  "type": 1,
  "code": "200",
  "message": "Operation completed successfully.",
  "errors": [],
  "preProcessingTook": 8,
  "serviceTook": 32,
  "totalTook": 40
}
HTTPMeaningWhat to check
400Bad RequestRequired fields, metadata session values, category schema and the errors array.
401UnauthorizedRoot-level ClientId and AppKey, plus access permission.
404Not FoundRecord or relationship ID and tenant context.
429Too Many RequestsUse Retry-After and retry with backoff.
500Internal Server ErrorCapture request context and trace information for support.