You're viewing the legacy docs. They are deprecated as of May 18, 2016.

REST Guide

App Management

This document explains how you can manage your app's Security and Firebase Rules through the REST API.

Writing Security and Firebase Rules

Using the REST API, you can write and update
Security and Firebase Rules for your
Firebase app by making a PUT request to the /.settings/rules.json path.
To do this, we'll need our Firebase Secret which can be found on the Secrets
tab on the left of our App Dashboard. To change our .read rule to
true for all data in our Firebase database, we could make the following PUT request: