> For the complete documentation index, see [llms.txt](https://docs.fylr.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fylr.io/for-developers/api/endpoints/collection/objects.md).

# /objects

Read or replace the objects linked to the collection identified by `collectionId`. `GET` returns the linked objects; `POST` replaces the entire list, linking exactly the objects in the body and unlinking any that are absent. The collection `_version` is not changed.

### `GET /collection/objects/{collection_id}` — Retrieve objects of a collection.

{% openapi src="/files/kfiDjhyZfEICNBmt5f49" path="/collection/objects/{collection\_id}" method="get" %}
[fylr-openapi.yml](https://4100607288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAdRFzQASDY2Elfdm3wXW%2Fuploads%2Fgit-blob-050645483a006e5537fee4cbfbd32be0bf2a9a23%2Ffylr-openapi.yml?alt=media)
{% endopenapi %}

### `POST /collection/objects/{collection_id}` — Replace objects of a collection.

{% openapi src="/files/kfiDjhyZfEICNBmt5f49" path="/collection/objects/{collection\_id}" method="post" %}
[fylr-openapi.yml](https://4100607288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAdRFzQASDY2Elfdm3wXW%2Fuploads%2Fgit-blob-050645483a006e5537fee4cbfbd32be0bf2a9a23%2Ffylr-openapi.yml?alt=media)
{% endopenapi %}
