Update Server Roles
post
/api/broker/Servers/updateServerRoles
Updates the subroles for different roles of a server.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Nested Schema : items
Type:
Show Source
object-
id: string
The database ID.Example:
model-2 -
role: string
Selected role name for which subrole is updatedExample:
Presentation -
selected: boolean
Denotes whether a particular subrole is selected for addition or de-selected for removalExample:
false -
ServerHostFQDN: string
Server Host FQDNExample:
server.example.com -
serverID: integer
Server IDExample:
1 -
subrole: string
Subrole name which is selected or de-selectedExample:
Internal -
version: string
Version of the ServerExample:
6.0.4
Response
Supported Media Types
- application/json
200 Response
Successful operation
Nested Schema : SuccessfulAddOperation
Type:
Show Source
object-
message: string
The response message.Example:
Added record -
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
true
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
Nested Schema : items
Type:
object