Microboard.Developers
ApiRich texts

Create a rich text

POST
/developers/boards/{boardId}/rich-texts

Authorization

apiKey<token>

In: query

Request Body

application/jsonRequired
type
Required
string
Value in: "RichText"
text
Required
string
transformationobject

Path Parameters

boardId
Required
string
curl -X POST "https://api.microboard.com/api/v1/developers/boards/string/rich-texts" \
  -H "apiKey: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "RichText",
    "text": "This is a rich text block"
  }'

Rich text created successfully

{
  "id": "text-123",
  "itemType": "RichText",
  "transformation": {
    "rotate": 0,
    "scaleX": 1,
    "scaleY": 1,
    "translateX": 300,
    "translateY": 300
  },
  "children": [
    {
      "type": "paragraph",
      "children": [
        {
          "text": "This is a rich text block",
          "type": "text",
          "fontSize": 16,
          "fontColor": "black",
          "fontFamily": "Arial",
          "bold": false,
          "italic": false
        }
      ]
    }
  ],
  "verticalAlignment": "center"
}