Trademarks Overview

Lidia PIM · API Reference · Trademarks / Brands

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.

Trademarks API: v2Query API: v2
01 · Concepts

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.

02 · Endpoint map

Trademark operations

OperationMethodPathLimit / 60s (endpoint / AppKey)
CreateTrademarkPOST/api/v2/trademarks300 / 30
UpdateTrademarkPATCH/api/v2/trademarks600 / 60
GetTrademarksPOST/api/v2/query/trademarks1200 / 120
Remove Trademark from ProductDELETE/api/v2/products/trademarks300 / 30

Each numerical limit applies to a 60-second sliding window. The endpoint limit and the per-AppKey limit are separate controls.

03 · Request rules

Authentication and updates

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 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 TrademarkId is required for an existing brand update.
  • No direct trademark-master DELETE endpoint is documented. Removing the product association does not delete the trademark itself.
Terminology

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.

04 · Quick start

Create, update and query a trademark

POST /api/v2/trademarks · CreateTrademark
{
  "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.

05 · Relationships

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
}
DELETE request body

The documented DELETE operation sends ProductId and TrademarkId in the JSON request body, not as URL path parameters.

Validation note

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.

06 · Operations

Response envelope, statuses and failures

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.

Status values documented for entities include Active=1, Draft=0, Passive=-1, Test=-9, Freezed=-11, Blocked=-12 and Deleted=-99.