Brand¶
A Brand is the name under which products and services are sold, with its logo, slogan and the
official pages that identify it (sameAs). Products, Services and
Organizations point to it with a Reference.
Modeled on schema.org/Brand · JSON Schema · ABAC object type Brand
Example¶
Create one with POST /brands:
{
"name": [
{
"at_language": "en",
"at_value": "Northpeak"
}
],
"slogan": [
{
"at_language": "en",
"at_value": "Further, together."
}
],
"logo": "https://cdn.example.com/northpeak/logo.svg",
"sameAs": [
"https://www.wikidata.org/wiki/Q00000000"
],
"tags": []
}
Fields¶
Required: name, tags.
| Field | Type | Required | Description |
|---|---|---|---|
at_context |
https://schema.org |
JSON-LD @context, always https://schema.org. |
|
at_type |
Brand |
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. |
|
id |
string | The object's id. Assigned by ObjectsGrid when the object is created. | |
identifier |
string | The object's id, as Schema.org identifier. Assigned by ObjectsGrid. |
|
name |
list of LanguageTaggedString | Yes | The Brand name. See schema.org/name. |
description |
list of LanguageTaggedString | The Brand description. See schema.org/description. | |
slogan |
list of LanguageTaggedString | The Brand slogan | |
sameAs |
list of URL | The Brand sameAs | |
url |
URL | The Brand URL | |
logo |
string | The Brand logo | |
tags |
list of Tag | Yes | 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 /brands |
| List and search | GET /brands |
| Create up to 100 at once | POST /brands/batch |
| Retrieve | GET /brands/{id} |
| Retrieve as a JSON-LD document for your pages | GET /brands/{id} with Accept: application/ld+json; see JSON-LD for your pages |
| Replace | PUT /brands/{id} |
| Update some fields | PATCH /brands/{id} |
| Delete | DELETE /brands/{id} |
The OpenAPI contract, with every parameter and response: Brands (JSON).
GraphQL¶
Endpoint POST https://apis.objectsgrid.com/graphql; see the GraphQL guide.
| Operation | Field |
|---|---|
| Query | brand(id: ID!, version: String): Brand |
| Query | brands(where: BrandWhereInput, orderBy: [BrandOrderByInput!], first: Int, after: String): BrandConnection! |
| Query | brandsGroupBy(by: [BrandGroupByField!]!, where: BrandWhereInput, having: BrandHavingInput, orderBy: [BrandGroupByOrderByInput!], first: Int, after: String): BrandGroupByConnection! |
| Mutation | createBrand(input: CreateBrandInput!): Brand! |
| Mutation | updateBrand(input: UpdateBrandInput!, expectedVersion: String): Brand! |
| Mutation | deleteBrand(id: ID!, expectedVersion: String): Boolean! |
Webhook events¶
Subscribe to these events in your webhook configuration to be called when a Brand changes:
BrandCreated, BrandUpdated, BrandPatched, BrandDeleted.