Supported Formats

application/json

Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: modal.

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Attributes of the segment

  • Must be a Hash

children
array
required

Child segments rendered inside the modal panel

  • Must be an array of any type


Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: view.

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Style attributes of the segment

  • Must be a Hash

children
array
required

Child segments

  • Must be an array of any type


Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: block_layout.

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Style attributes of the segment

  • Must be a Hash

children
array
required

Child segments

  • Must be an array of any type


Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: inline_layout.

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Style attributes of the segment

  • Must be a Hash

children
array
required

Child segments

  • Must be an array of any type


Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: grid.

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Style attributes of the segment

  • Must be a Hash

children
array
required

Child segments

  • Must be an array of any type


Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: newline.

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

children
array
required

Child segments rendered after the line break

  • Must be an array of any type


Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: text.

text
string
required

The text content to render

  • Must be a String

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Style attributes of the segment

  • Must be a Hash

children
array
required

Child segments (nested text runs)

  • Must be an array of any type


Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: image.

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Style attributes of the segment

  • Must be a Hash


Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: heading.

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Style attributes of the segment

  • Must be a Hash

children
array
required

Child segments (the heading text, usually text runs)

  • Must be an array of any type



Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: button.

text
string
required

The button label; when omitted the children are rendered instead

  • Must be a String

url
string
required

Fallback link target used when attributes.to is absent

  • Must be a String

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Style attributes of the segment

  • Must be a Hash

children
array
required

Child segments rendered inside the button

  • Must be an array of any type


Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: icon.

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Attributes of the segment

  • Must be a Hash


Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: badge.

text
string
required

The badge text

  • Must be a String

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Style attributes of the segment

  • Must be a Hash


Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: spacer.

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Style attributes of the segment

  • Must be a Hash


Supported Formats

application/json

Returns

Response - No Content

Code 204 - application/json
type
string
required

The type of the segment

  • Must be one of: pressable.

url
string
required

Fallback link target used when attributes.to is absent

  • Must be a String

data
hash
required

Arbitrary data echoed onto the rendered element as data-* attributes

  • Must be a Hash

name
string
required

The name of the segment (rendered as data-ppx-name)

  • Must be a String

attributes
hash
required

Style attributes of the segment

  • Must be a Hash

children
array
required

Child segments rendered inside the pressable

  • Must be an array of any type