Rest Update object

Updating an object is actually saving over the old object.

To change an object, send a PUT request to the object URL. 

In the following example we will change the "car_year" of the Car with the id - kEG7VgTLul


In the Header we will add 3 parameters:

1. X-Parse-Application-Id: your application Id

2. X-Parse-Session-Token: your session token 

3. Content-Type: application/json 




In the body we will pass the JSON-encoded data.

Keys that are not specified will not change.




The response body we will get:

{

    "updatedAt": "2021-03-14T04:16:55.299Z",

    "objectId": "kEG7VgTLul"

}


Now we can go to the Database and check the record that we've changed.


Counters 

We can use a numeric field as a counter using the following JSON:


"car_year": {"__op":"Increment", "amount":"1"}             


Updating a pointer

In our example we will add a pointer called "car_color" pointing to "Colors" table.  

To update a pointer we need to pass the pointer in the following JSON:


"car_year": "2025","car_color": {"__type":"Pointer", "className":"Colors", "objectId":"zLs0Fsu7vT"}


About Simbla

We believe that end users know exactly what they need to perform more efficiently and effectively. Simbla allows them to produce game-changing cloud CRM without writing a single line of code.

Simbla is an AI-generated cloud CRM and a no-code development platform that helps non-coders build quick, flexible, efficient solutions quickly and easily.

Our team has years of experience developing sophisticated cloud-based systems. Drawing on that experience, we built a platform that allowed non-coders to create a tailored CRM that exactly fits the business needs without long deployment and without the help of professionals.

It is a no-code platform with an AI layer, capable of reducing the cost of deploying and maintaining a tailored cloud CRM by as much as 90%.