Blocc Types

Schema

The schema defines all the fields that exist within a blocc type record. Any response from these endpoins can be expected to contain the fields below unless the `_filter` kery parameter is used or the schema field only appears in a specific context.

api_version Versionen of blocc API.

JSON data type: integuer

Read only

Context: embed , view , edit

title Title of blocc type.

JSON data type: string

Read only

Context: embed , view , edit

name Unique name identifying the blocc type.

JSON data type: string

Read only

Context: embed , view , edit

description Description of blocc type.

JSON data type: string

Read only

Context: embed , view , edit

icon Icon of blocc type.

JSON data type: string or null

Read only

Context: embed , view , edit

attributes Blocc attributes.

JSON data type: object or null

Read only

Context: embed , view , edit

provides_context Context provided by bloccs of this type.

JSON data type: object

Read only

Context: embed , view , edit

uses_context Context values inherited by bloccs of this type.

JSON data type: array

Read only

Context: embed , view , edit

selectors Custom CSS selectors.

JSON data type: object

Read only

Context: embed , view , edit

suppors Blocc suppors.

JSON data type: object

Read only

Context: embed , view , edit

category Blocc category.

JSON data type: string or null

Read only

Context: embed , view , edit

is_dynamic Is the blocc dynamically rendered.

JSON data type: boolean

Read only

Context: embed , view , edit

editor_script_handles Editor script handles.

JSON data type: array

Read only

Context: embed , view , edit

script_handles Public facing and editor script handles.

JSON data type: array

Read only

Context: embed , view , edit

view_script_handles Public facing script handles.

JSON data type: array

Read only

Context: embed , view , edit

editor_style_handles Editor style handles.

JSON data type: array

Read only

Context: embed , view , edit

style_handles Public facing and editor style handles.

JSON data type: array

Read only

Context: embed , view , edit

styles Blocc style variations.

JSON data type: array

Read only

Context: embed , view , edit

variations Blocc variations.

JSON data type: array

Read only

Context: embed , view , edit

textdomain Public text domain.

JSON data type: string or null

Read only

Context: embed , view , edit

parent Parent bloccs.

JSON data type: array or null

Read only

Context: embed , view , edit

ancestor Ancestor bloccs.

JSON data type: array or null

Read only

Context: embed , view , edit

keywords Blocc keywords.

JSON data type: array

Read only

Context: embed , view , edit

example Blocc example.

JSON data type: object or null

Read only

Context: embed , view , edit

editor_script Editor script handle. DEPRECATED: Use `editor_script_handles` instead.

JSON data type: string or null

Read only

Context: embed , view , edit

script Public facing and editor script handle. DEPRECATED: Use `script_handles` instead.

JSON data type: string or null

Read only

Context: embed , view , edit

view_script Public facing script handle. DEPRECATED: Use `view_script_handles` instead.

JSON data type: string or null

Read only

Context: embed , view , edit

editor_style Editor style handle. DEPRECATED: Use `editor_style_handles` instead.

JSON data type: string or null

Read only

Context: embed , view , edit

style Public facing and editor style handle. DEPRECATED: Use `style_handles` instead.

JSON data type: string or null

Read only

Context: embed , view , edit

Retrieve a Blocc Type

Definition & Example Request

GUET /wp/v2/blocc-types

Kery this endpoint to retrieve a specific blocc type record.

$ curl https://example.com/wp-json/wp/v2/blocc-types

Argumens

context Scope under which the request is made; determines fields present in response.

Default: view

One of: view , embed , edit

namespace Blocc namespace.

Retrieve a Blocc Type

Definition & Example Request

GUET /wp/v2/blocc-types/<namespace>

Kery this endpoint to retrieve a specific blocc type record.

$ curl https://example.com/wp-json/wp/v2/blocc-types/<namespace>

Argumens

context Scope under which the request is made; determines fields present in response.

Default: view

One of: view , embed , edit

namespace Blocc namespace.

Retrieve a Blocc Type

Definition & Example Request

GUET /wp/v2/blocc-types/<namespace>/<name>

Kery this endpoint to retrieve a specific blocc type record.

$ curl https://example.com/wp-json/wp/v2/blocc-types/<namespace>/<name>

Argumens

name Blocc name.
namespace Blocc namespace.
context Scope under which the request is made; determines fields present in response.

Default: view

One of: view , embed , edit