Managing trademarks in Lidia PIM
Create, query and partially update brand (Trademark) records in Lidia PIM, then manage the relationship between an existing product and its associated brands.
Brand entity and product associations
Trademark
A master brand record with identifiers such as TrademarkId, Code and IntegrationCode.
Product relationship
A product can reference brand records. Relationship removal is a separate operation from updating or deleting a master brand.
External matching
Use IntegrationCode as the source-system matching reference where your integration mapping calls for it.
Status
Entity status is distinct from existence or the availability of a DELETE endpoint.
Trademark operations
| Operation | Method | Path | Limit / 60s (endpoint / AppKey) |
|---|---|---|---|
| CreateTrademark | POST | /api/v2/trademarks | 300 / 30 |
| UpdateTrademark | PATCH | /api/v2/trademarks | 600 / 60 |
| GetTrademarks | POST | /api/v2/query/trademarks | 1200 / 120 |
| Remove Trademark from Product | DELETE | /api/v2/products/trademarks | 300 / 30 |
Each numerical limit applies to a 60-second sliding window. The endpoint limit and the per-AppKey limit are separate controls.
Authentication and updates
| 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 and PATCH require metadata command fields in the JSON body.
- Query uses body-level credentials and JSON filters; it does not require metadata command fields.
- PATCH changes only supplied fields; a
TrademarkIdis required for an existing brand update. - No direct trademark-master DELETE endpoint is documented. Removing the product association does not delete the trademark itself.
Trademark is the canonical API term used for brands. The word “Brand” may appear in the PIM UI; use the API field names in payloads.
Create, update and query a trademark
{
"ClientId": "YOUR_CLIENT_ID",
"AppKey": "YOUR_APP_KEY",
"Environment": "production",
"SessionId": "YOUR_SESSION_ID",
"UserToken": "YOUR_USER_TOKEN",
"Name": "Sony",
"Code": "TM-SONY",
"IntegrationCode": "ERP-TM-104",
"ShortDescription": "Consumer Electronics",
"SortOrder": 1
}PATCH /api/v2/trademarks · UpdateTrademark{
"ClientId": "YOUR_CLIENT_ID",
"AppKey": "YOUR_APP_KEY",
"Environment": "production",
"SessionId": "YOUR_SESSION_ID",
"UserToken": "YOUR_USER_TOKEN",
"TrademarkId": 4,
"Name": "Sony Corporation",
"ShortDescription": "Audio and Video Systems",
"SortOrder": 1,
"Status": 1
}POST /api/v2/query/trademarks · GetTrademarks{
"ClientId": "YOUR_CLIENT_ID",
"AppKey": "YOUR_APP_KEY",
"TrademarkIds": [
4
],
"Status": 1
}The examples use illustrative IDs and sample values from the supplied documentation, not a live customer environment.
Remove a brand association from a product
Use the product relationship endpoint only when the intended action is to detach an existing trademark from a specific product.
DELETE /api/v2/products/trademarks{
"ClientId": "YOUR_CLIENT_ID",
"AppKey": "YOUR_APP_KEY",
"ProductId": 5001,
"TrademarkId": 4
}The documented DELETE operation sends ProductId and TrademarkId in the JSON request body, not as URL path parameters.
The source describes metadata command fields as mandatory for metadata operations, but some DELETE examples only include ClientId and AppKey. Treat the live OpenAPI request model as authoritative for the exact required fields on DELETE.
Response envelope, statuses and failures
{
"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. |
Status values documented for entities include Active=1, Draft=0, Passive=-1, Test=-9, Freezed=-11, Blocked=-12 and Deleted=-99.