# Introducing Conditional REST Requests

DevFeed: [Introducing Conditional REST Requests](<https://devfeed.tech/articles/introducing-conditional-rest-requests-16212.md>)

Original publisher: [Read original article](<https://firebase.blog/posts/2017/07/introducing-conditional-rest-requests>)

Author: Casey Rogers

Published: 2017-07-31T00:00:00Z

Content type: news

Language: en

Sources: [Firebase Blog](<https://devfeed.tech/sources/firebase-blog.md>)

Topics: [Firebase](<https://devfeed.tech/topics/firebase.md>), [Realtime Database](<https://devfeed.tech/topics/realtime-database.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [content addressed store](<https://devfeed.tech/topics/content-addressed-store.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [cas](<https://devfeed.tech/tags/cas.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [http](<https://devfeed.tech/tags/http.md>), [launch](<https://devfeed.tech/tags/launch.md>), [news](<https://devfeed.tech/tags/news.md>), [realtime-database](<https://devfeed.tech/tags/realtime-database.md>), [rest](<https://devfeed.tech/tags/rest.md>), [updates](<https://devfeed.tech/tags/updates.md>)

## AI overview

Firebase introduces conditional REST requests for the Realtime Database. Using ETags and the If-Match header, clients can safely perform compare-and-swap updates and retry when another user changes the data first.

## Source excerpt

News, tutorials, and updates from the Firebase team.