Microsoft Visio API · Example Payload

Visio Javascript Listshapes Example

Business ProcessCollaborationDiagramsEnterpriseFlowchartsMicrosoft 365Visualization

Visio Javascript Listshapes Example is an example object payload from Microsoft Visio API, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "GET",
    "url": "/document/pages/Page-1/shapes",
    "headers": {
      "X-Embedded-Session": "{{VISIO_EMBEDDED_SESSION}}",
      "Accept": "application/json"
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "items": [
        {
          "id": 1,
          "name": "Process",
          "text": "Order Processing",
          "select": false,
          "boundingBox": {
            "x": 100.0,
            "y": 50.0,
            "width": 120.0,
            "height": 60.0
          }
        },
        {
          "id": 2,
          "name": "Decision",
          "text": "Approved?",
          "select": true,
          "boundingBox": {
            "x": 300.0,
            "y": 50.0,
            "width": 100.0,
            "height": 80.0
          }
        }
      ]
    }
  }
}