Microboard.Developers
ApiBatch

Perform batch operations on items

POST
/developers/boards/{boardId}/items/batch

Authorization

apiKey<token>

In: query

Request Body

application/jsonRequired
operations
Required
array<object | object | object>

Path Parameters

boardId
Required
string
curl -X POST "https://api.microboard.com/api/v1/developers/boards/string/items/batch" \
  -H "apiKey: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "operations": [
      {
        "type": "create",
        "data": {
          "type": "Shape",
          "shapeType": "RoundedRectangle",
          "borderColor": "#1a1a1a",
          "backgroundColor": "#ffffff",
          "width": 200,
          "height": 100
        }
      }
    ]
  }'

Batch operations completed 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"
    }
  }
]