# Save to repository with REST service

**URL:** <https://community.bloomreach.com/t/save-to-repository-with-rest-service/2968>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [January 27, 2022, 1:17pm UTC](https://community.bloomreach.com/t/save-to-repository-with-rest-service/2968 "2022-01-27T13:17:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asanchez](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@asanchez](https://community.bloomreach.com/u/asanchez)\
**Post date:** [January 27, 2022, 1:17pm UTC](https://community.bloomreach.com/t/save-to-repository-with-rest-service/2968/1 "2022-01-27T13:17:47Z")

</div>

Hello,

The client does not request a requirement that until now had not been given. The need is to have a REST service (@POST) with which the user can modify the values ​​of the fields of a document. Until now  
all we’ve done is query REST services, but not node/document modifications.

Previously we have made a development that is in Production, which reads information from an external repository and saves it in the cms (repository-cms). This is a J2EE build that runs from a cms cronjob. This development is included in the package **{myproject}/cms** and in it we use the **org.hippoecm.repository.impl.WorkspaceDecorator** class.

Our problem is that we have tried to use this same class in the package **{myproject}/site/components** for the REST service (@POST) but it does not allow us. Is there a way to have a REST service in Bloomreach that allows modifications to repository documents/nodes?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![machak](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/machak/32/1298_2.png) [@machak](https://community.bloomreach.com/u/machak)\
**Post date:** [January 27, 2022, 2:15pm UTC](https://community.bloomreach.com/t/save-to-repository-with-rest-service/2968/2 "2022-01-27T14:15:56Z")

</div>

see:

> **[Hst Component Persistable annotation and workflow - Bloomreach Experience...](https://documentation.bloomreach.com/14/library/concepts/component-development/hstcomponent-persistable-annotation-and-workflow.html)**
>
> The fast and flexible on-premise or PaaS headless CMS
