Update a Topology Tool
put
                    /api/topology/Tools/{id}
Updates the properties of an existing topology tool specified by the tool ID.
                Request
Path Parameters
                - 
                    id(required):  integer(int32)
                    
                    The tool ID.Example:1
Supported Media Types
                            - application/json
Root Schema : schema
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    ContextEdgeType: string
                    
                    
                     
                    
                
                
                The edge type that the tool is available for. When ContextElement, ContextEdgeType, and ContextVertexType are all unset, the tool is available in all topology graph contexts. When any of the context properties are set, the tool is available only in the specified context.Example:ConnectsInterface
- 
                
                    
                    ContextElement: string
                    
                    
                     
                    
                
                
                The graph elements that the tool is available for.
 Allowed values are:- Edge
- Vertex
 Example:Edge
- 
                
                    
                    ContextVertexType: string
                    
                    
                     
                    
                
                
                The vertex type that the tool is available for. When ContextElement, ContextEdgeType, and ContextVertexType are all unset, the tool is available in all topology graph contexts. When any of the context properties are set, the tool is available only in the specified context.Example:Device
- 
                
                    
                    Height: integer
                    
                    
                     
                    
                
                
                Used when toolTarget is set to window. The height of the pop-up window. Any value between 10 and 90 is treated as a percentage of the overall browser height. Any value greater than 100 is treated as an absolute pixel value.Example:80
- 
                
                    
                    Icon: string
                    
                    
                     
                    
                
                
                The icon used for the tool in menus.Example:fugue/heart--exclamation.png
- 
                
                    
                    ToolName: string
                    
                    
                     
                    
                
                
                The topology tool name.
 To avoid confusion with numeric IDs, the name value cannot be integers only or integers prefixed with the + or - symbols only. It must contain letters or other characters. For example, 1234, +1234, and -1234 are not valid, but US1234, US+1234 and US_1234 are.Example:Device Overview
- 
                
                    
                    ToolPath: string
                    
                    
                     
                    
                
                
                The path to the web page to open, or script or function to run, depending on the value of Path Type.
 If the value starts with a string and ://, such as https://, this is an absolute path. Otherwise, the path is relative to the $A1BASEDIR/www/tools/topology/ directory.
 You can use tokens in the path in the format <Property> to represent object properties. When the tool is run, tokens are replaced with actual values. For example, <DeviceID> is replaced with the value from the object's DeviceID property. Common tokens include:- <DeviceID>
- <ObjectID>
- <OwnerUserID>
- <OwnerUserGroupID>
 Example:dashboard/Device%20Overview?DeviceName=<DeviceName>&FilterType=DeviceName&FilterValue=<DeviceName>&DeviceZoneID=<DeviceZoneID>
- 
                
                    
                    ToolPathTypeID: integer
                    
                    
                     
                    
                
                
                The ID of the tool path type.
 Possible values are:- 1: Local
- 2: Internal
- 3: Hybrid
- 4: Remote
- 5: Function
 Example:2
- 
                
                    
                    ToolTarget: string
                    
                    
                     
                    
                
                
                How the tool opens new pages.
 Possible values are:- window: Opens in a pop-up window.
- currenttab: Opens in the current browser tab.
- newtab: Opens in a new browser tab.
 Example:window
- 
                
                    
                    ToolTypeID: integer
                    
                    
                     
                    
                
                
                The ID of the tool type. For topology tools, this is always 1 for the View type.Example:1
- 
                
                    
                    Width: integer
                    
                    
                     
                    
                
                
                Used when toolTarget is set to window. The width of the pop-up window. Any value between 10 and 90 is treated as a percentage of the overall browser width. Any value greater than 100 is treated as an absolute pixel value.Example:80
Response
Supported Media Types
                - application/json
200 Response
Successful operation
                            
                            
                                Root Schema : schema
    
    	
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Match All
    
        
    
        
    
    Show Source
    - 
                
                object 
                
                
             SuccessfulUpdateOperation
                
            The response body for a successful update operation.
- 
                
                object 
                
                
             type
                
            
Nested Schema : SuccessfulUpdateOperation
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectThe response body for a successful update operation.
    
    
    
    
        Show Source
        - 
                
                    
                    message: string
                    
                    
                     
                    
                
                
                The response message.Example:Updated record
- 
                
                    
                    success: boolean
                    
                    
                     
                    
                
                
                Whether the operation was a success (true) or a failure (false).Example:true
Nested Schema : type
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    data: array
                    
                    
                
                
                    data
                
                
                
- 
                
                    
                    total: integer
                    
                    
                     
                    
                
                
                The total number of results regardless of paging.Example:1
Nested Schema : topologyToolsRead
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    ContextEdgeType: string
                    
                    
                     
                    
                
                
                The edge type that the tool is available for. When ContextElement, ContextEdgeType, and ContextVertexType are all unset, the tool is available in all topology graph contexts. When any of the context properties are set, the tool is available only in the specified context.Example:ConnectsInterface
- 
                
                    
                    ContextElement: string
                    
                    
                     
                    
                
                
                The graph elements that the tool is available for.
 Allowed values are:- Edge
- Vertex
 Example:Edge
- 
                
                    
                    ContextVertexType: string
                    
                    
                     
                    
                
                
                The vertex type that the tool is available for. When ContextElement, ContextEdgeType, and ContextVertexType are all unset, the tool is available in all topology graph contexts. When any of the context properties are set, the tool is available only in the specified context.Example:Device
- 
                
                    
                    Height: integer
                    
                    
                     
                    
                
                
                Used when toolTarget is set to window. The height of the pop-up window. Any value between 10 and 90 is treated as a percentage of the overall browser height. Any value greater than 100 is treated as an absolute pixel value.Example:80
- 
                
                    
                    Icon: string
                    
                    
                     
                    
                
                
                The icon used for the tool in menus.Example:fugue/heart--exclamation.png
- 
                
                    
                    ObjectTypeID: integer
                    
                    
                     
                    
                
                
                The object type ID for the tool.Example:1
- 
                
                    
                    ToolID: integer
                    
                    
                     
                    
                
                
                The tool ID.Example:1
- 
                
                    
                    ToolName: string
                    
                    
                     
                    
                
                
                The name of the tool.Example:Device Overview
- 
                
                    
                    ToolPath: string
                    
                    
                     
                    
                
                
                The path to the web page to open, or script or function to run, depending on the value of Path Type.
 If the value starts with a string and ://, such as https://, this is an absolute path. Otherwise, the path is relative to the $A1BASEDIR/www/tools/topology/ directory.
 You can use tokens in the path in the format <Property> to represent object properties. When the tool is run, tokens are replaced with actual values. For example, <DeviceID> is replaced with the value from the object's DeviceID property. Common tokens include:- <DeviceID>
- <ObjectID>
- <OwnerUserID>
- <OwnerUserGroupID>
 Example:dashboard/Device%20Overview?DeviceName=<DeviceName>&FilterType=DeviceName&FilterValue=<DeviceName>&DeviceZoneID=<DeviceZoneID>
- 
                
                    
                    ToolPathTypeID: integer
                    
                    
                     
                    
                
                
                The ID of the tool path type.
 Possible values are:- 1: Local
- 2: Internal
- 3: Hybrid
- 4: Remote
- 5: Function
 Example:2
- 
                
                    
                    ToolPathTypeName: string
                    
                    
                     
                    
                
                
                The name of the tool path type.Example:Internal
- 
                
                    
                    ToolTarget: string
                    
                    
                     
                    
                
                
                How the tool opens new pages.
 Possible values are:- window: Opens in a pop-up window.
- currenttab: Opens in the current browser tab.
- newtab: Opens in a new browser tab.
 Example:window
- 
                
                    
                    ToolTargetName: string
                    
                    
                     
                    
                
                
                The name of the tool target.Example:window
- 
                
                    
                    ToolTypeID: integer
                    
                    
                     
                    
                
                
                The ID of the tool type. For topology tools, this is always 1 for the View type.Example:1
- 
                
                    
                    ToolTypeName: string
                    
                    
                     
                    
                
                
                The name of the tool type. For topology tools, this is always View.Example:View
- 
                
                    
                    Width: integer
                    
                    
                     
                    
                
                
                Used when toolTarget is set to window. The width of the pop-up window. Any value between 10 and 90 is treated as a percentage of the overall browser width. Any value greater than 100 is treated as an absolute pixel value.Example:80
Default Response
Failed operation
                            
                            
                                Root Schema : schema
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    errors: array
                    
                    
                
                
                    errors
                
                
                The list of errors reported. Validation errors will be keyed by record field.
- 
                
                    
                    message: string
                    
                    
                     
                    
                
                
                The response message.Example:Exception thrown
- 
                
                    
                    success: boolean
                    
                    
                     
                    
                
                
                Whether the operation was a success (true) or a failure (false).Example:false
Nested Schema : errors
    
    	
    	Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayThe list of errors reported. Validation errors will be keyed by record field.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  items
            
            An error.
Nested Schema : items
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectAn error.