Markenfarbe abrufen
GET
/brand/colors/{id}
const url = 'https://ihre-marke.brandhub.31m.de/api/v1/brand/colors/1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://ihre-marke.brandhub.31m.de/api/v1/brand/colors/1 \ --header 'Authorization: Bearer <token>'Liefert eine Farbe mit HEX, RGB, CMYK, Pantone, RAL und Abstufungen.
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Path Parameters
Abschnitt betitelt „Path Parameters“id
required
integer
Responses
Abschnitt betitelt „Responses“BrandColor
Media typeapplication/json
BrandColor
object
id
required
integer
name
required
string
description
required
string | null
role
required
string | null
hex
required
string
rgb
required
string | null
cmyk
required
string | null
pantone
required
string | null
ral
required
string | null
shades
required
Array<object>
object
opacity
required
string | null
hex
required
string | null
Examplegenerated
{ "id": 1, "name": "example", "description": "example", "role": "example", "hex": "example", "rgb": "example", "cmyk": "example", "pantone": "example", "ral": "example", "shades": [ { "opacity": "example", "hex": "example" } ]}