create update delete

🚧

Text and Intermediate points within the line aren't supported in REST API.

{
  "type": "line",
  // required for creation
  "startWidget": {
    "id": "3074457346811293699"
  },
  // required for creation
  "endWidget": {
    "id": "3074457346811293709"
  },
  "style": {
    // supports short hex code color format
    "borderColor": "#da0063", // default: "#000000"
    // allowed values: "normal", "dashed", "dotted"
    "borderStyle": "normal", // default: "normal"
    // allowed values: 1.0, 2.0, 3.0, 4.0, 5.0, 8.0, 12.0, 16.0, 20.0, 24.0
    "borderWidth": 1.0, // default: 1.0
    // allowed values:
    // "none", "opaque_block", "rhombus", "opaque_rhombus", "circle", 
    // "opaque_circle", "block", "open_arrow", "opaque_arrow"
    "lineEndType": "opaque_block",
    "lineStartType": "opaque_block",
    // allowed values: "straight", "orthogonal", "bezier", "sketch"
    "lineType": "orthogonal" // default: "straight"
  }
}