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.
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 DataType | Meaning |
|---|---|
0 | Text |
1 | Number |
2 | Boolean |
3 | Date |
4 | RichText |
5 | List |
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.
Attribute API operations
| Operation | Method | Path | Limit / 60s (endpoint / AppKey) |
|---|---|---|---|
| CreateOption | POST | /api/v2/options | 300 / 30 |
| UpdateOption | PATCH | /api/v2/options | 600 / 60 |
| CreateOptionValue | POST | /api/v2/options/values | 600 / 60 |
| UpdateOptionValue | PATCH | /api/v2/options/values | 600 / 60 |
| CreateProperty | POST | /api/v2/properties | 300 / 30 |
| UpdateProperty | PATCH | /api/v2/properties | 600 / 60 |
| GetOptions | POST | /api/v2/query/options | 1200 / 120 |
| GetProperties | POST | /api/v2/query/properties | 1200 / 120 |
| Find Category Data Schema | POST | /api/v2/categories/dataschema | 600 / 60 |
Limits are 60-second sliding-window quotas; both endpoint-level and per-AppKey thresholds apply.
Credentials, PATCH and lifecycle
| Request type | Required fields / rules |
|---|---|
| All PIM requests | ClientId and AppKey at the JSON body root, not as authentication headers. |
| Metadata commands | Environment, SessionId, UserToken in addition to credentials, as specified for the endpoint. |
| Query, search and pool | No metadata-command fields required by the supplied specification; use ClientId / AppKey. |
| Tracing | Optional ThreadId; the service generates one if omitted. |
| JSON convention | Use exact PascalCase request fields such as CategoryId, SortOrder, Skip and Take. |
- Create/update commands are metadata operations; include
Environment,SessionIdandUserTokenas 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.
PropertyId, OptionId and allowed values used in product/variant payloads should come from the category schema, not be guessed.
Create, update and query
{
"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.
Category schema determines valid attributes
- 01 · SelectChoose categoryDetermine the target CategoryId.
- 02 · DiscoverFind data schemaGet properties, required flags, allowed values and option values.
- 03 · MapBuild payloadTranslate ERP/PIM source fields into supported PropertyId / OptionId values.
- 04 · SubmitValidate and sendCreate/patch metadata or submit batch data according to the operation.
{
"ClientId": "YOUR_CLIENT_ID",
"AppKey": "YOUR_APP_KEY",
"Environment": "production",
"SessionId": "YOUR_SESSION_ID",
"UserToken": "YOUR_USER_TOKEN",
"CategoryId": 12
}The schema can report isMandatory and allowedValues. Validate your payload against these rules before sending it.
Response and error handling
{
"result": [],
"resultCount": 0,
"totalCount": 0,
"type": 1,
"code": "200",
"message": "Operation completed successfully.",
"errors": [],
"preProcessingTook": 8,
"serviceTook": 32,
"totalTook": 40
}| HTTP | Meaning | What to check |
|---|---|---|
400 | Bad Request | Required fields, metadata session values, category schema and the errors array. |
401 | Unauthorized | Root-level ClientId and AppKey, plus access permission. |
404 | Not Found | Record or relationship ID and tenant context. |
429 | Too Many Requests | Use Retry-After and retry with backoff. |
500 | Internal Server Error | Capture request context and trace information for support. |