Rest API "Apply Edits request" can theoretically edit/delete features which are not queryable due to layer definition query.
It would help in building secure and robust services if it couldnt.
ref - https://community.esri.com/t5/arcgis-rest-api-questions/does-quot-apply-edits-request-quot-ignor-lay...