Microboard.Developers
ApiRich texts

Update a rich text

PATCH
/developers/boards/{boardId}/rich-texts/{itemId}

Authorization

apiKey<token>

In: query

Request Body

application/jsonRequired
textstring
fontSizenumber
fontColorstring
fontFamilystring
alignmentstring
Value in: "left" | "center" | "right"

Path Parameters

boardId
Required
string
itemId
Required
string
curl -X PATCH "https://api.microboard.com/api/v1/developers/boards/string/rich-texts/string" \
  -H "apiKey: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Updated text",
    "fontSize": 16,
    "fontColor": "#333333"
  }'

Rich text updated successfully

{
  "id": "string",
  "itemType": "Shape",
  "transformation": {
    "rotate": 0,
    "scaleX": 1,
    "scaleY": 1,
    "translateX": 0,
    "translateY": 0
  },
  "text": {
    "children": [
      {
        "type": "paragraph",
        "children": [
          {
            "text": "string",
            "type": "text",
            "fontSize": 14,
            "fontColor": "black",
            "fontFamily": "Arial",
            "lineHeight": 1.4,
            "bold": false,
            "italic": false,
            "underline": false,
            "lineThrough": false,
            "fontHighlight": ""
          }
        ],
        "horisontalAlignment": "left"
      }
    ],
    "insideOf": "Frame",
    "itemType": "RichText",
    "realSize": 0,
    "placeholderText": "string",
    "containerMaxWidth": 0,
    "verticalAlignment": "center"
  }
}