Update a Diagram

put

/api/diagram/Diagrams/{id}

Updates the properties of the diagram that matches the specified ID.

Request

Path Parameters
  • The diagram ID specified for individual CRUD operations. It is either the numerical diagram ID or the diagram name.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Auto fits the diagram display into the panel disregarding the size configuration
    Example: false
  • Initial diagram group
    Example: 1
  • Name of the diagram.
    Example: New Diagram
  • Allowed Values: [ 1, 2 ]
    Diagram Type ID Allowed values: - 1 => Basic - 2 => Dynamic Devices
    Example: 1
  • Height of the diagram.
    Example: 400
  • Revision commit message
    Example: Changing the shape
  • Diagram SVG (actual layout definition)
    Example: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mon="namespace" version="1.1" baseProfile="full" width="600" height="400" preserveAspectRatio="none" zoomAndPan="magnify" style="border-right:solid 1px #dbdee4;" > <defs> <linearGradient id="Gradient1BeigeFill" x1="100%" y1="100%" x2="0%" y2="0%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(238,232,170)"/> <stop offset="1" stop-color="rgb(133,129,95)"/> </linearGradient> <linearGradient id="Gradient1BeigeStroke" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(238,232,170)"/> <stop offset="1" stop-color="rgb(133,129,95)"/> </linearGradient> <linearGradient id="Gradient1GrayFill" x1="100%" y1="100%" x2="0%" y2="0%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(221,221,221)"/> <stop offset="1" stop-color="rgb(102,102,102)"/> </linearGradient> <linearGradient id="Gradient1GrayStroke" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(221,221,221)"/> <stop offset="1" stop-color="rgb(102,102,102)"/> </linearGradient> <linearGradient id="Gradient1GreenFill" x1="100%" y1="100%" x2="0%" y2="0%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(0,255,0)"/> <stop offset="1" stop-color="rgb(0,102,0)"/> </linearGradient> <linearGradient id="Gradient1GreenStroke" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(0,255,0)"/> <stop offset="1" stop-color="rgb(0,102,0)"/> </linearGradient> <linearGradient id="Gradient1BlueFill" x1="100%" y1="100%" x2="0%" y2="0%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(102,204,255)"/> <stop offset="1" stop-color="rgb(0,51,102)"/> </linearGradient> <linearGradient id="Gradient1BlueStroke" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(102,204,255)"/> <stop offset="1" stop-color="rgb(0,51,102)"/> </linearGradient> <linearGradient id="Gradient1PurpleFill" x1="100%" y1="100%" x2="0%" y2="0%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(204,0,255)"/> <stop offset="1" stop-color="rgb(51,0,102)"/> </linearGradient> <linearGradient id="Gradient1PurpleStroke" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(204,0,255)"/> <stop offset="1" stop-color="rgb(51,0,102)"/> </linearGradient> <linearGradient id="Gradient1YellowFill" x1="100%" y1="100%" x2="0%" y2="0%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(255,255,0)"/> <stop offset="1" stop-color="rgb(102,102,0)"/> </linearGradient> <linearGradient id="Gradient1YellowStroke" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(255,255,0)"/> <stop offset="1" stop-color="rgb(102,102,0)"/> </linearGradient> <linearGradient id="Gradient1OrangeFill" x1="100%" y1="100%" x2="0%" y2="0%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(255,153,0)"/> <stop offset="1" stop-color="rgb(102,51,0)"/> </linearGradient> <linearGradient id="Gradient1OrangeStroke" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(255,153,0)"/> <stop offset="1" stop-color="rgb(102,51,0)"/> </linearGradient> <linearGradient id="Gradient1RedFill" x1="100%" y1="100%" x2="0%" y2="0%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(255,0,0)"/> <stop offset="1" stop-color="rgb(102,0,0)"/> </linearGradient> <linearGradient id="Gradient1RedStroke" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(255,0,0)"/> <stop offset="1" stop-color="rgb(102,0,0)"/> </linearGradient> <linearGradient id="Gradient2BlueFill" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="#CEDBF0"/> <stop offset="1" stop-color="#5088D4"/> </linearGradient> <linearGradient id="Gradient2BlueStroke" x1="100%" y1="100%" x2="0%" y2="0%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="rgb(255,255,255)"/> <stop offset="1" stop-color="rgb(0,51,102)"/> </linearGradient> <linearGradient id="Gradient1Fill" x1="100%" y1="100%" x2="0%" y2="0%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="black" stop-opacity="0"/> <stop offset="1" stop-color="black" stop-opacity="0.7"/> </linearGradient> <linearGradient id="Gradient1Stroke" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="black" stop-opacity="0"/> <stop offset="1" stop-color="black" stop-opacity="0.7"/> </linearGradient> <clipPath id="DiagramClipping"> <rect id="DiagramClippingArea" x="0" y="0" width="600" height="400"/> </clipPath> </defs> <style type="text/css"> <![CDATA[ {literal} .SolidBeige { fill: #EEE8AA; stroke: #EEE8AA; } .SolidGray { fill: #B4B4B4; stroke: #B4B4B4; } .SolidGreen { fill: #00CD00; stroke: #00CD00; } .SolidPurple { fill: #B23AEE; stroke: #B23AEE; } .SolidBlue { fill: #63B8FF; stroke: #63B8FF; } .SolidYellow { fill: #FFFF00; stroke: #FFFF00; } .SolidOrange { fill: #FFB329; stroke: #FFB329; } .SolidRed { fill: #FF0000; stroke: #FF0000; } .Gradient1Beige { fill: url(#Gradient1BeigeFill); stroke: url(#Gradient1BeigeStroke); } .Gradient1Gray { fill: url(#Gradient1GrayFill); stroke: url(#Gradient1GrayStroke); } .Gradient1Green { fill: url(#Gradient1GreenFill); stroke: url(#Gradient1GreenStroke); } .Gradient1Purple { fill: url(#Gradient1PurpleFill); stroke: url(#Gradient1PurpleStroke); } .Gradient1Blue { fill: url(#Gradient1BlueFill); stroke: url(#Gradient1BlueStroke); } .Gradient1Yellow { fill: url(#Gradient1YellowFill); stroke: url(#Gradient1YellowStroke); } .Gradient1Orange { fill: url(#Gradient1OrangeFill); stroke: url(#Gradient1OrangeStroke); } .Gradient1Red { fill: url(#Gradient1RedFill); stroke: url(#Gradient1RedStroke); } .Gradient2Blue { fill: url(#Gradient2BlueFill); stroke: #5088D4; } {/literal} ]]> </style> <g id="Diagram" clip-path="url(#DiagramClipping)"> <rect id="Background" x="0" y="0" width="600" height="400" fill="#ffffff" mon:RefreshRate="60" mon:LastWidgetID="0"/> <image id="BackgroundImage" x="0" y="0" width="600" height="400" preserveAspectRatio="none" xlink:href="" display="none"/> </g> <g id="Widgets" clip-path="url(#DiagramClipping)"> <g xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="Widget_1" transform="translate(391, 71) rotate(0, 32, 32)" WidgetType="EventEllipse" FilterType="FilterID" FilterGroupName="//Global" FilterValueName="All Events" DisplayName="Default" LinkType="EventList" LinkTarget="SameTab" LinkValue="" LinkExtra="" MenuID="0" Theme="Gradient1" SoundName="" > <ellipse cx="32" cy="32" rx="32" ry="32" stroke-width="2" class="Gradient1Gray"/> </g><g xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="Widget_2" transform="translate(248, 65) rotate(-180, 32, 32)" WidgetType="MetricEllipse" TimeRange="now-24h..now" ManualPollCycles="undefined" ThresholdTypeID="1" LinkType="Back" LinkTarget="" LinkValue="" LinkExtra="" MenuID="0" Theme="Gradient1" MetricTypeName="" InstanceName="" RetentionPolicy="" MetricField="undefined" WarningThresholdName="" WarningManualThresholdOperator="" WarningManualThresholdValue="" WarningThresholdSoundName="" CriticalThresholdName="" CriticalManualThresholdOperator="" CriticalManualThresholdValue="" CriticalThresholdSoundName="" DeviceName="device1" DeviceZoneID="1" DeviceZoneName="Default First Zone" > <ellipse cx="32" cy="32" rx="32" ry="32" stroke-width="2" class="Gradient1Gray"/> </g><g xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="Widget_3" transform="translate(382, 202) rotate(-180, 35, 35)" WidgetType="MetricEllipse" TimeRange="now-24h..now" ManualPollCycles="undefined" ThresholdTypeID="1" LinkType="MetricGraph" LinkTarget="SameTab" LinkValue="" LinkExtra="" MenuID="0" Theme="Gradient1" MetricTypeName="" InstanceName="" RetentionPolicy="" MetricField="undefined" WarningThresholdName="" WarningManualThresholdOperator="" WarningManualThresholdValue="" WarningThresholdSoundName="" CriticalThresholdName="" CriticalManualThresholdOperator="" CriticalManualThresholdValue="" CriticalThresholdSoundName="" DeviceName="device1" DeviceZoneID="1" DeviceZoneName="Default First Zone" > <ellipse cx="32" cy="32" rx="32" ry="32" stroke-width="2" class="Gradient1Gray"/> </g></g> </svg>
  • Width of the diagram.
    Example: 600
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Match All
Show Source
Nested Schema : SuccessfulUpdateOperation
Type: object
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : data
Type: array
The properties of the updated diagram.
Show Source
Nested Schema : diagramDiagramsRead
Type: object
Show Source

Default Response

Failed operation
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : errors
Type: array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
Nested Schema : items
Type: object
Back to Top