Update a Diagram Menu
put
/api/diagram/Menus/{id}
Updates the diagram menu that matches the specified ID.
Request
Path Parameters
-
id(required): integer
The diagram menu ID specified for individual CRUD operations.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
MenuName: string
If specified, update the name of menu with new value.Example:
Device Info
-
ParentMenuID: integer
Menu ID of parent. If specified, move the menu to new parent.Example:
1
-
Tools: array
Tools
List of tool IDs. If specified, new set of menu tools will associate with this menu.
-
UserGroupID: integer
ID of the User Group. If specified, the API will give access to the user group with matching ID.Example:
1
Nested Schema : Tools
Type:
array
List of tool IDs. If specified, new set of menu tools will associate with this menu.
Show Source
Example:
[
2,
1,
3
]
Response
Supported Media Types
- application/json
200 Response
Successful operation
Nested Schema : SuccessfulUpdateOperation
Type:
Show Source
object
-
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
The properties of the updated diagram menu.
Nested Schema : data
Type:
array
The properties of the updated diagram menu.
Show Source
Example:
[
2,
1,
3
]
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:
array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
Nested Schema : items
Type:
object