Era.Common.NetworkMessage.ConsoleApi.Policies.RpcSetStaffUserPoliciesRequest

Description

Assigns policies to a staff user. Previously assigned policies will be removed, unless they are present in this request.

Properties

Name JsonSchemaType Description
policiesUuids array of references to Era.Common.DataDefinition.Common.Uuid UUIDs of the policies to be assigned. The order of the policies will be respected, first policies in this list will be applied first.
staffUserUuid reference to Era.Common.DataDefinition.Common.Uuid UUID of the staff user, to which the policies should be assigned.
versionGuard integer Version guard for the staff user, to which the policies are assigned.

Dual message (request/response)

Era.Common.NetworkMessage.ConsoleApi.Policies.RpcSetStaffUserPoliciesResponse

Referenced in messages

No references.

JsonSchema

{
    "title": "Era.Common.NetworkMessage.ConsoleApi.Policies.RpcSetStaffUserPoliciesRequest",
    "type": "object",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "required": [
        "Era.Common.NetworkMessage.ConsoleApi.Policies.RpcSetStaffUserPoliciesRequest"
    ],
    "properties": {
        "Era.Common.NetworkMessage.ConsoleApi.Policies.RpcSetStaffUserPoliciesRequest": {
            "$ref": "#/definitions/RpcSetStaffUserPoliciesRequest"
        }
    },
    "definitions": {
        "RpcSetStaffUserPoliciesRequest": {
            "additionalProperties": false,
            "required": [
                "staffUserUuid",
                "versionGuard"
            ],
            "type": "object",
            "properties": {
                "policiesUuids": {
                    "type": "array",
                    "items": [
                        {
                            "$ref": "Era.Common.DataDefinition.Common.Uuid#/definitions/Uuid"
                        }
                    ]
                },
                "staffUserUuid": {
                    "$ref": "Era.Common.DataDefinition.Common.Uuid#/definitions/Uuid"
                },
                "versionGuard": {
                    "type": "integer"
                }
            }
        }
    }
}