[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-05 UTC。"],[],[],null,["\u003cbr /\u003e\n\nThis document explains how you can manage your app's Firebase Realtime Database Security Rules through the REST API. \n\nUpdating Firebase Realtime Database Security Rules\n\n\nUsing the REST API, you can write and update\n[Firebase Realtime Database Security Rules](/docs/database/security) for your\nFirebase app by making a `PUT` request to the `/.settings/rules.json` path.\nTo do this, we'll need an access token to [authenticate our REST request](/docs/database/rest/auth)\n\n\nIn this example, we enable read access for all data in our Firebase database: \n\n```\ncurl -X PUT -d '{ \"rules\": { \".read\": true } }' 'https://docs-examples.firebaseio.com/.settings/rules.json?access_token=\u003cACCESS_TOKEN\u003e'\n```\nWriting Firebase Realtime Database Security Rules through the REST API will overwrite any existing rules. \n\nRetrieving Firebase Realtime Database Security Rules\n\n\nSimilarly, we can make a GET request to the `/.settings/rules.json` path of our app's\nURL to retrieve our Firebase Realtime Database Security Rules: \n\n```\ncurl 'https://docs-examples.firebaseio.com/.settings/rules.json?access_token=\u003cACCESS_TOKEN\u003e'\n```\n\n\nThe response will contain all of the rules for our app."]]