> 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/splice.md).

# /splice

Splice the object list of the collection identified by `collectionId`: remove `count` objects at position `index` and insert the supplied `objects` at that position. The request body is a single object carrying the `index`, `count` and `objects` fields. The collection `_version` is not changed.

### `POST /collection/splice/{collection_id}` — Remove and add objects to a collection.

{% openapi src="/files/kfiDjhyZfEICNBmt5f49" path="/collection/splice/{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-ca0ed768cf0f36ca55fc3ee2ac61892ce5444d46%2Ffylr-openapi.yml?alt=media)
{% endopenapi %}
