Retrieve a Single Object
Retrieving a Single Object
This function allows you to retrieve a single object of the given type and with the given ID.
Relative URL | HTTP Request Method |
---|---|
| GET |
Replace
model
with the type of object that you wish to retrieve (as defined in your app's Data Model) for exampleperson
,job
orasset
.Replace
object-id
with the ID of the specific object.Replace
format
with the response data format (json
orxml
), or leave it out.
Parameters
This function does not take any parameters.
Response
The response includes the single object requested. The format of the object is the same as for Retrieving all Objects.
Example
BASE-URL
The below examples contain a BASE-URL
placeholder. Please refer to the HTTP Endpoints section to get the base URL relevant to your deployment.
Sample request:
Sample response:
Retrieving Related Objects
You can optionally retrieve related objects that the object belongs-to in one operation.
Parameters
Specify the relationship names for the related objects you want to retrieve as a comma-separated list in a parameter named embed
.
Example
BASE-URL
The below examples contain a BASE-URL
placeholder. Please refer to the HTTP Endpoints section to get the base URL relevant to your deployment.
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:
Last updated