Back to all

SecAccess2LvlSchema vs SecAccessSchema

Hello

I am searching for notes that are "Full Access: Public":

{
	"note": {
		"criteria": {
			"searchQuery": {
        "secAccess": {
          "write": {
            "$EQ": "VXNlcgkq"
          }
				}
			}
		},
		"scope": {
			"fields": {
				"key": 1
			}
		}
	},
    "configuration": {
        "drivers": {
            "INoteSearcher": "Maximizer.Model.Access.Sql.NoteSearcher"
        }
    },
    "compatibility": {
        "NoteKey": "2.0"
    }
}

I run this query using "/Read" and it returns this result:

{
  "Code": -1,
  "Msg": [
    {
      "Message": "Unable to cast object of type 'Maximizer.Model.SecAccess2LvlSchema' to type 'Maximizer.Model.SecAccessSchema'.",
      "ErrorCode": 0
    }
  ]
}

How do I correct my query to return Public notes?