# updateSite

## Overview

Updates an existing Site's display attributes (Mutation). Every input field except `siteId` is optional; the resolver applies partial-update semantics: omitted fields (`undefined` / `null`) leave the column untouched, and a provided value (name, type, address, timezone) overwrites the corresponding column.

## Modules Commands Used

- [organization] UpdateSite

## Exception Handling

| Error Code | Description |
| --- | --- |
| ORGANIZATION_SITE_NOT_FOUND | The specified site does not exist |
| ORGANIZATION_INVALID_NAME | Name is empty or invalid |
| ORGANIZATION_DUPLICATE_NAME | A site with the same name already exists in the same Company |
| ORGANIZATION_INVALID_TYPE | The specified site type is not valid |
| ORGANIZATION_MISSING_REQUIRED_FIELDS | Required fields are missing |
| ORGANIZATION_INVALID_COUNTRY | The specified country code is not valid |
| ORGANIZATION_INVALID_TIMEZONE | The specified timezone is not valid |
