# Update an existing site Endpoint: PUT /site/{siteId} Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) ## Request fields (application/json): - `name` (string, required) The name of the site Example: "Downtown Clinic" - `address` (object, required) The address of the site Example: {"street":"123 Main St","city":"New York","zipCode":"10001"} - `googlePlaceId` (string, required) The Google Place ID of the site Example: "ChIJN1t_tDeuEmsRUsoyG83frY4" - `clientAccountId` (number, required) The ID of the client Account the site belongs to Example: 1 - `organizationId` (number, required) The ID of the organization the site belongs to Example: 1 - `brandId` (number, required) The ID of the brand the site belongs to Example: 2 - `phoneNumber` (string) The phone number of the site Example: "+1-555-555-5555" - `website` (string) The website of the site Example: "https://www.downtownclinic.com" - `anyDeskIp` (string) The AnyDesk IP of the site for remote access Example: "192.168.1.1" - `practiceManagementSystemId` (number, required) The practice management system ID for the site Example: 123 - `integrationType` (string, required) Integration type for the site Enum: "PMS", "CUSTOM" - `siteManagerUserId` (number) The ID of the decision-maker user Example: 45 - `dentalServiceIds` (array, required) Array of dental service IDs associated with the site Example: ["1","2","3"] - `dentalPracticeIds` (array, required) Array of dental practice IDs associated with the site Example: ["10","11","12"] - `cloudUserName` (string) The cloud based username for the site Example: "cloud-user" - `cloudUserPassword` (string) The cloud based user password for the site Example: "cloud-user-password" - `cloudOrganizationName` (string) The cloud based organization name for the site Example: "cloud-organization-name" - `cloudLoginUrl` (string) The cloud based login url for the site Example: "https://cloud-login-url.com" ## Response 200 fields (application/json): - `name` (string, required) The name of the site Example: "Downtown Clinic" - `address` (object, required) The address of the site Example: {"street":"123 Main St","city":"New York","zipCode":"10001"} - `googlePlaceId` (string, required) The Google Place ID of the site Example: "ChIJN1t_tDeuEmsRUsoyG83frY4" - `clientAccountId` (number, required) The ID of the client Account the site belongs to Example: 1 - `organizationId` (number, required) The ID of the organization the site belongs to Example: 1 - `brandId` (number, required) The ID of the brand the site belongs to Example: 2 - `phoneNumber` (string) The phone number of the site Example: "+1-555-555-5555" - `website` (string) The website of the site Example: "https://www.downtownclinic.com" - `anyDeskIp` (string) The AnyDesk IP of the site for remote access Example: "192.168.1.1" - `practiceManagementSystemId` (number, required) The practice management system ID for the site Example: 123 - `integrationType` (string, required) Integration type for the site Enum: "PMS", "CUSTOM" - `siteManagerUserId` (number) The ID of the decision-maker user Example: 45 - `dentalServiceIds` (array, required) Array of dental service IDs associated with the site Example: ["1","2","3"] - `dentalPracticeIds` (array, required) Array of dental practice IDs associated with the site Example: ["10","11","12"] - `cloudUserName` (string) The cloud based username for the site Example: "cloud-user" - `cloudUserPassword` (string) The cloud based user password for the site Example: "cloud-user-password" - `cloudOrganizationName` (string) The cloud based organization name for the site Example: "cloud-organization-name" - `cloudLoginUrl` (string) The cloud based login url for the site Example: "https://cloud-login-url.com" ## Response 401 fields (application/json): - `message` (string, required) Error message indicating unauthorized access. Example: "Unauthorized" - `statusCode` (number, required) HTTP status code for unauthorized access. Example: 401 ## Response 400 fields ## Response 404 fields