# Question: How to Resync a Data Source using the rest api

**URL:** <https://forum.pydio.com/t/question-how-to-resync-a-data-source-using-the-rest-api/6062>\
**Category:** Pydio Cells\
**Tags:** api\
**Created:** [October 9, 2024, 12:45am UTC](https://forum.pydio.com/t/question-how-to-resync-a-data-source-using-the-rest-api/6062 "2024-10-09T00:45:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![instantdreams](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/instantdreams/32/2315_2.png) [@instantdreams](https://forum.pydio.com/u/instantdreams)\
**Post date:** [October 9, 2024, 1:07am UTC](https://forum.pydio.com/t/question-how-to-resync-a-data-source-using-the-rest-api/6062/2 "2024-10-09T01:07:59Z")

</div>

I found the answer. I [rubber ducked](https://rubberduckdebugging.com/) myself. Typing out your problems is often the fastest way to fix them.

According to [this post](https://forum.pydio.com/t/api-for-synchronizing-indexing-system-files/3312/2) from @zayn the correct details are:

- method: `PUT`
- endpoint: `/a/jobs/user/datasource-resync`
- body: `{"JobName":"datasource-resync","JsonParameters":"{\"dsName\":\"pydiods1\"}"}`

I added four calls to my test bed:

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/4/42b730925e03223de5657f3049f362c75777f471.png)

I adjusted each Change node to use the datasource-resync service:

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/9/94370540fca14d34e51846a9b1c4e8076826be8b.png)

I checked to make sure the json payload was properly formatted:

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/6/663104793834494b7a4ea17c94eeacc256eca19e.png)

Then I triggered each one successfully:

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/9/9ba7ceae576d9ddce428988e11dbd792f4b92829.png)

Both the container logs and the cells console show progress and success.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/4/4be46cd98af0450632f99a6bedff22b9596dff0f.png)

I’m quite happy with that 🙂

---

_[View the full topic](https://forum.pydio.com/t/question-how-to-resync-a-data-source-using-the-rest-api/6062)._
