> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/api-reference/endpoints/hosting/git/update-git-auto-deployment-settings.md).

# Update Git auto-deployment settings

Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and isenabled.

{% openapi src="<https://developers.hostinger.com/openapi/openapi.json>" path="/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings" method="put" %}
<https://developers.hostinger.com/openapi/openapi.json>
{% endopenapi %}
