Retrieve a Specific Instance with Its Field Values

Retrieve one instance of a concept with its field values through the Typed Read API.

1 min read

From the example in Create an Object

Retrieve a specific country instance with its field values

HTTP URL

Set the request URL to https://<your-instance>.yooi.io/api/store/type/Country/id/{object id}.

HTTP method

Set the method to GET.

Example

Send the request.

curl -X GET \
  'https://<your-instance>.yooi.io/api/store/type/Country/id/9d8126bb-4cde-4410-8eb3-77885aacc8f7' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer {integrationToken}'

Response

Review the response.

{
  "id": "9d8126bb-4cde-4410-8eb3-77885aacc8f7",
  "href": "/api/store/type/Country/id/9d8126bb-4cde-4410-8eb3-77885aacc8f7",
  "created-at": 1652446363439,
  "functional-id": "1",
  "name": [
    {
      "type": "paragraph",
      "children": [
        {
          "text": "France"
        }
      ]
    }
  ],
  "population": 67340000,
  "updated-at": 1652449407750
}

Read more

Related articles

Was this page helpful?