I want to post new data to my firebase API, but everytime I do so, a new key, like -L545gZW7E6Ed6iqXRok
is generated with my object inside it. I would like to s
When you use the POST verb, Firebase generates a new location. This is in line with REST-ful idioms: POST
is used to create a new object in a server-defined new location.
If you want to write to an existing location, or a new location you control, use the PUT verb. In this case the data will be written to exactly the location you specify in the URL, and it will overwrite any existing data at that location.
If you want to update part of the data at an existing location, but leave other pieces of the data unmodified, use the PATCH verb.
If your HTTP client doesn't support specifying a verb, you can optionally pass the verb as HTTP-Method-Override header.