# API that could perform CRUD operations on templates in Bloomreach

**URL:** <https://community.bloomreach.com/t/api-that-could-perform-crud-operations-on-templates-in-bloomreach/4094>\
**Category:** Uncategorized\
**Created:** [August 29, 2023, 7:21am UTC](https://community.bloomreach.com/t/api-that-could-perform-crud-operations-on-templates-in-bloomreach/4094 "2023-08-29T07:21:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumamanish](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/kumamanish/32/1134_2.png) [@kumamanish](https://community.bloomreach.com/u/kumamanish)\
**Post date:** [August 29, 2023, 7:21am UTC](https://community.bloomreach.com/t/api-that-could-perform-crud-operations-on-templates-in-bloomreach/4094/1 "2023-08-29T07:21:21Z")

</div>

Hi all,

I am looking for **API** that could perform **CRUD** operations on templates in Bloomreach, however I have GET api with me.  
GET : [https://localhost:8080/cms/ws/rest/api/nodes/hippo:namespaces/my-project/UserTemplate?depth=100](https://localhost:8080/cms/ws/rest/api/nodes/hippo:namespaces/my-project/UserTemplate?depth=100)

I need help here for CRUD(Create, Read, Update and Delete) operations, can you all suggest any api/documentations for CRUD, I have not found yet. I’m very thankful If you(@jasper.floor, @machak ) can help here or suggest something.

Thanks,  
Manish Kumar

---

<div class="post-metadata">

**Author:** ![jeroen.hoffman](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jeroen.hoffman/32/43_2.png) [@jeroen.hoffman](https://community.bloomreach.com/u/jeroen.hoffman)\
**Post date:** [August 30, 2023, 8:41am UTC](https://community.bloomreach.com/t/api-that-could-perform-crud-operations-on-templates-in-bloomreach/4094/2 "2023-08-30T08:41:43Z")

</div>

Hi Manish,  
There is no out-of-the-box API to change document types (to which you refer as ‘templates’).

The safe procedure to change document types is use the document type editor locally, have the changes below /hippo:namespaces saved in yaml files and then propagate the changes by doing deployments.

See at [https://xmdocumentation.bloomreach.com/library/concepts/document-types/document-type-](https://xmdocumentation.bloomreach.com/library/concepts/document-types/document-type-)  
editor.html

Cheers, Jeroen

---

<div class="post-metadata">

**Author:** ![kumamanish](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/kumamanish/32/1134_2.png) [@kumamanish](https://community.bloomreach.com/u/kumamanish)\
**Post date:** [August 30, 2023, 9:43am UTC](https://community.bloomreach.com/t/api-that-could-perform-crud-operations-on-templates-in-bloomreach/4094/3 "2023-08-30T09:43:45Z")

</div>

Hi @jeroen.hoffman ,

Thanks for your suggestion but my requirement is to **create/read/update/delete** document types dynamically(on demand through api only).

If you can help me to find out the responsible classes!. Generally we create template through ui inetrface and definitely backend classes executes to create it. I am unable to find those classes. Request you to please help me. I will expose endpoints by referring those classes to fullfill my requirements.

Thanks,  
Manish Kumar
