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