# Using the updateSiteDeploy API

**URL:** <https://answers.netlify.com/t/using-the-updatesitedeploy-api/91440>\
**Category:** Support\
**Tags:** netlify-api, deployment\
**Created:** [May 2, 2023, 3:17pm UTC](https://answers.netlify.com/t/using-the-updatesitedeploy-api/91440 "2023-05-02T15:17:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![harris-at-webase](https://avatars.discourse-cdn.com/v4/letter/h/e274bd/32.png) [@harris-at-webase](https://answers.netlify.com/u/harris-at-webase)\
**Post date:** [May 2, 2023, 3:17pm UTC](https://answers.netlify.com/t/using-the-updatesitedeploy-api/91440/1 "2023-05-02T15:17:07Z")

</div>

Hey guys. I’ve built an integration with the Netlify API that allows users to deploy websites that are built using our no-code website builder.

I have a question about the deployment API.

Currently each time we deploy a site we just create a new deployment and upload all of the files. This is fine for small sites.

But for large sites uploading 100s of files every time, even when the content has not been updated since the last deploy, takes a long time etc.

So my question: can I use the updateSiteDeploy and only update the files that have content that has been updated since the last deploy without losing the previous files that were part of an earlier deploy?

Or put another way, does updateSiteDeploy API endpoint update files included in the update call without destroying other files that are not included in the update?

Thank you for any help here!

–Harris

> **[webase.com WeBase Tailwind Editor](https://www.webase.com)**

Build Something Great!

---

<div class="post-metadata">

**Author:** ![luke](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/luke/32/39_2.png) [@luke](https://answers.netlify.com/u/luke)\
**Post date:** [May 3, 2023, 1:06am UTC](https://answers.netlify.com/t/using-the-updatesitedeploy-api/91440/2 "2023-05-03T01:06:29Z")

</div>

Hi, @harris-at-webase. Every deploy must list all file in the deploy when calling the API. There is no way to send only new or changed files in the manifest.

There is a long thread about this here:

> [@Skipping CDN file diff](https://answers.netlify.com/t/skipping-cdn-file-diff/79012):
>
> I deploy to Netlify using Netlify CLI. I have a site with many thousands (around 20k files) of small pages and the CDN diff is taking anywhere between 6 and 45 mins. It’s really variable. I suspect the diff is way slower than just uploading the whole bundle each time. Is there a way to skip the CDN diff and just always upload the entire bundle of files?

While that is about the CLI tool above, the CLI is using the same API and the same requirements apply here.

If there are questions after reading the thread above, please let us know.
