Retrieve a Single Object
Last updated
Last updated
This function allows you to retrieve a single object of the given type and with the given ID.
/api/v4/
backend-deployment-id
/objects/
model
/
object-id
.json
GET
This function does not take any parameters.
The response includes the single object requested. The format of the object is the same as for .
Sample request:
Sample response:
You can optionally retrieve related objects that the object belongs-to in one operation.
Specify the relationship names for the related objects you want to retrieve as a comma-separated list in a parameter named embed
.
Let's say our Data Model allows for task
objects that belong to category
objects, so that each category has many tasks. When we're retrieving a task, we can embed the related category that it belongs to as follows:
Sample request:
The response features the task
object with the category
object that it belongs to embedded inside it:
The below examples contain a BASE-URL
placeholder. Please refer to the section to get the base URL relevant to your deployment.