Create a New Object
Last updated
Last updated
This function creates a single new object of the given type.
/api/v4/
backend-deployment-id
/objects/
model
.json
POST
A needs to be supplied containing the following:
Fields
: Fields as defined in your app's .
Relationships
: IDs of related objects that the object specified by using the relationship name and appending it with _id
.
For the format of all the different field types, see the section.
The key of this hash has to be the name of the object type (see example below). In the following example of parameters in JSON format, the object type name is car and it has three fields: make, model and license_plate and one relationship: it belongs to a warehouse.
Response:
Sending parameters as JSON:
The response includes the single newly created object. The format of the object is the same as for .
The below examples contain a BASE-URL
placeholder. Please refer to the section to get the base URL relevant to your deployment.
Parameters as URL-encoded key-value pairs: (refer to )