ProductModel¶
A ProductModel is a model of a product line, the datasheet rather than the item on the shelf: for
example the 2026 edition of a laptop. predecessorOf and successorOf link the models of a line in order.
Modeled on schema.org/ProductModel · JSON Schema · ABAC object type ProductModel
Example¶
Create one with POST /productmodels:
{
"name": [
{
"at_language": "en",
"at_value": "UltraBook 14 (2026)"
}
],
"sku": "UB14-2026",
"successorOf": {
"at_id": "https://apis.objectsgrid.com/productmodels/7d4c1e0a-3b2f-4a5e-8c9d-0e1f2a3b4c5d"
}
}
Fields¶
Required: name, sku.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | The object's id. Assigned by ObjectsGrid when the object is created. | |
at_context |
https://schema.org |
JSON-LD @context, always https://schema.org. |
|
at_type |
ProductModel |
JSON-LD @type, the object's type name. |
|
at_id |
URL | The object's ObjectsGrid URL, https://apis.objectsgrid.com/<path>/<id>, its JSON-LD @id: what References to it hold. Assigned by ObjectsGrid. |
|
identifier |
string | The object's id, as Schema.org identifier. Assigned by ObjectsGrid. |
|
image |
URL | image URL | |
name |
list of LanguageTaggedString | Yes | The Product Name. See schema.org/name. |
description |
list of LanguageTaggedString | The Product Description. See schema.org/description. | |
url |
URL | This Product URL | |
additionalType |
ProductCollection |
The kind of product: ProductCollection for a bundle or kit, whose contents are in includesObject: its JSON-LD @type. None for a ProductModel. | |
includesObject |
list of TypeAndQuantityNode | ProductCollection: the bundle's contents, each a good and how many of it | |
predecessorOf |
computed: list of ProductModel | A pointer from a previous, often discontinued variant of the product to its newer variant. Computed, read-only: the objects whose ProductModel.successorOf points to this object, listed from that type; never stored or written. | |
successorOf |
Reference to ProductModel | A pointer from a newer variant of a product to its previous, often discontinued predecessor. | |
aggregateRating |
AggregateRating | The aggregate rating of the Product | |
asin |
string | The Amazon Standard Identification Number (ASIN) of the product | |
audience |
Audience | The audience for the product | |
award |
string | Awards won by or for this item | |
brand |
Reference to Brand or Organization | The brand of the product | |
category |
list of string | The category of the product | |
color |
string | The color of the product | |
colorSwatch |
string | Color swatch images for the product | |
countryOfAssembly |
CountryCodeEnumeration | The country where the product is assembled | |
countryOfLastProcessing |
CountryCodeEnumeration | The country where the product was last processed | |
countryOfOrigin |
CountryCodeEnumeration | The country where the product was manufactured | |
depth |
QuantitativeValue | The depth of the product | |
funding |
Reference (external URL) | A pointer to a funding source for the item | |
gtin |
string | The Global Trade Item Number (GTIN) of the product | |
gtin12 |
string | The GTIN-12 of the product | |
gtin13 |
string | The GTIN-13 of the product | |
gtin14 |
string | The GTIN-14 of the product | |
gtin8 |
string | The GTIN-8 of the product | |
hasAdultConsideration |
list of AdultOrientedEnumeration | Indicates whether this item is targeted at a mature audience | |
hasCertification |
list of string | The certifications and/or standards for the product | |
hasEnergyConsumptionDetails |
EnergyConsumptionDetails | The energy consumption details for the product | |
hasGS1DigitalLink |
URL | A link to the GS1 Digital Link representation of the product identifier | |
hasMeasurement |
QuantitativeValue | A pointer to a product measurement | |
hasMerchantReturnPolicy |
Reference to MerchantReturnPolicy | The return policy for it, when it differs from its Product's or seller's | |
height |
QuantitativeValue | The height of the product | |
inProductGroupWithID |
string | The Product Group ID for the product | |
isAccessoryOrSparePartFor |
list of References to Product or ProductGroup or ProductModel | A pointer to another product (or multiple products) for which this product is an accessory or spare part | |
isConsumableFor |
list of References to Product or ProductGroup or ProductModel | A pointer to another product (or multiple products) for which this product is a consumable | |
isFamilyFriendly |
boolean | Indicates whether this item is family friendly | |
isRelatedTo |
list of References to Product or ProductGroup or ProductModel or Service | A pointer to another, somehow related product (or multiple products) | |
isSimilarTo |
list of References to Product or ProductGroup or ProductModel or Service | A pointer to another, functionally similar product (or multiple products) | |
isVariantOf |
Reference to ProductGroup or ProductModel | A pointer to a base product (or multiple products) for which this product is a variant (e.g. in color, size, material, etc.) | |
itemCondition |
OfferItemCondition | The condition of the product | |
keywords |
list of LanguageTaggedString | Keywords used to describe the product | |
logo |
URL | An associated logo for the product | |
manufacturer |
Reference to Organization | The manufacturer of the product | |
material |
list of string | The material of the product | |
mobileUrl |
URL | This Product Mobile URL | |
model |
string | The model of the product | |
mpn |
string | The Manufacturer Part Number (MPN) of the product | |
negativeNotes |
list of LanguageTaggedString | Provides negative considerations regarding the product | |
nsn |
string | The NATO Stock Number (NSN) of the product | |
offers |
computed: list of Offer | Links to Offers to provide this item. For example, offers to sell a product, rent the DVD of a movie, or give away tickets to an event. Computed, read-only: the objects whose Offer.itemOffered points to this object, listed from that type; never stored or written. | |
pattern |
list of LanguageTaggedString | A pattern that can be used to describe the product | |
positiveNotes |
list of LanguageTaggedString | Provides positive considerations regarding the product | |
productID |
string | The product identifier, such as ISBN. For example: 'isbn:123-456-789'. | |
productionDate |
date-time | The production date of the product | |
purchaseDate |
date-time | The purchase date of the product | |
releaseDate |
date-time | The release date of the product | |
review |
computed: list of Review | Review of the item. Computed, read-only: the objects whose Review.itemReviewed points to this object, listed from that type; never stored or written. | |
size |
SizeSpecification | The size of the product, e.g. a clothing size in a size system | |
sku |
string | Yes | The Stock Keeping Unit (SKU) of the product |
slogan |
list of LanguageTaggedString | The slogan of the product | |
weight |
QuantitativeValue | The weight of the product | |
width |
QuantitativeValue | The width of the product | |
tags |
list of Tag | Tags your ABAC policy decides on. Created empty when not sent, kept by a PUT that leaves them out, cleared by null or []. |
REST API¶
Base URL https://apis.objectsgrid.com. Every request sends the X-ObjectsGrid-AccessPoint and Authorization: Bearer <access token> headers; see the REST API guide.
| Operation | Request |
|---|---|
| Create | POST /productmodels |
| List and search | GET /productmodels |
| Create up to 100 at once | POST /productmodels/batch |
| Retrieve | GET /productmodels/{id} |
| Retrieve as a JSON-LD document for your pages | GET /productmodels/{id} with Accept: application/ld+json; see JSON-LD for your pages |
| Replace | PUT /productmodels/{id} |
| Update some fields | PATCH /productmodels/{id} |
| Delete | DELETE /productmodels/{id} |
The OpenAPI contract, with every parameter and response: ProductModels (JSON).
GraphQL¶
Endpoint POST https://apis.objectsgrid.com/graphql; see the GraphQL guide.
| Operation | Field |
|---|---|
| Query | productModel(id: ID!, version: String): ProductModel |
| Query | productModels(where: ProductModelWhereInput, orderBy: [ProductModelOrderByInput!], first: Int, after: String): ProductModelConnection! |
| Query | productModelsGroupBy(by: [ProductModelGroupByField!]!, where: ProductModelWhereInput, having: ProductModelHavingInput, orderBy: [ProductModelGroupByOrderByInput!], first: Int, after: String): ProductModelGroupByConnection! |
| Mutation | createProductModel(input: CreateProductModelInput!): ProductModel! |
| Mutation | updateProductModel(input: UpdateProductModelInput!, expectedVersion: String): ProductModel! |
| Mutation | deleteProductModel(id: ID!, expectedVersion: String): Boolean! |
Webhook events¶
Subscribe to these events in your webhook configuration to be called when a ProductModel changes:
ProductModelCreated, ProductModelUpdated, ProductModelPatched, ProductModelDeleted.