Add or replace a swatch, style, component or font of a brand kit (a new revision)
const url = 'https://example.com/v1/brandkits/example/example/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/v1/brandkits/example/example/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”The item.
A swatch, style or component as a template has it (a component with fields: the definitions of the fields its parts use, by name; its parts may use only the kit’s swatches, styles and images, and fonts of the library), or a font { sha256 } of the library; each with name and description (its usage rule).
object
Example generated
{}Responses
Section titled “Responses”The answer.
object
object
object
Its usage rule.
The kit revision it last changed in.
object
Its usage rule.
The kit revision it last changed in.
object
Its usage rule.
The kit revision it last changed in.
object
Its usage rule.
The kit revision it last changed in.
object
Its usage rule.
The kit revision it last changed in.
object
Its usage rule.
The kit revision it last changed in.
Example generated
{ "id": "example", "name": "example", "description": "example", "revision": 1, "counts": { "swatches": 1, "paragraphStyles": 1, "characterStyles": 1, "images": 1, "components": 1, "fonts": 1 }, "updatedAt": "example", "updatedBy": "example", "swatches": [ { "id": "example", "name": "example", "description": "example", "revision": 1 } ], "paragraphStyles": [ { "id": "example", "name": "example", "description": "example", "revision": 1 } ], "characterStyles": [ { "id": "example", "name": "example", "description": "example", "revision": 1 } ], "images": [ { "id": "example", "name": "example", "description": "example", "revision": 1 } ], "components": [ { "id": "example", "name": "example", "description": "example", "revision": 1 } ], "fonts": [ { "id": "example", "name": "example", "description": "example", "revision": 1 } ]}The request is malformed (bad-request).
object
Example
{ "code": "field-unknown"}No key, or not a valid one.
object
Example
{ "code": "field-unknown"}The key lacks the scope, or its tenant is suspended or deleted.
object
Example
{ "code": "field-unknown"}Not there, or not the tenant’s.
object
Example
{ "code": "field-unknown"}Understood, but refused: values, layout or package problems.
object
Example
{ "code": "field-unknown"}