# Create a new site Endpoint: POST /site Version: 1.0 Security: bearer ## 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 201 fields (application/json): - `id` (number, required) The ID of the site Example: 123 - `name` (string, required) The name of the site Example: "Downtown Clinic" - `address` (object, required) The address information of the site - `address.lat` (number, required) The latitude coordinate of the address Example: 37.7749 - `address.lng` (number, required) The longitude coordinate of the address Example: -122.4194 - `address.url` (string, required) The URL associated with the address Example: "https://maps.google.com/?q=123+Main+St" - `address.formatted_address` (string, required) The formatted address string Example: "123 Main St, San Francisco, CA 94103" - `googlePlaceId` (string, required) The Google Place ID for the site Example: "ChIJN1t_tDeuEmsRUsoyG83frY4" - `phoneNumber` (string,null) The phone number of the site Example: "+1 (555) 123-4567" - `website` (string,null) The website of the site Example: "https://downtownclinic.com" - `anyDeskIp` (string,null) The AnyDesk IP address for remote access Example: "192.168.1.100" - `createdByUserId` (number, required) The ID of the user who created the site Example: 202 - `createdAt` (string, required) The date and time the site was created Example: "2021-05-01T12:00:00Z" - `updatedAt` (string, required) The date and time the site was last updated Example: "2021-05-01T12:00:00Z" - `deletedAt` (string,null) The date and time the site was deleted, if applicable Example: "null" - `clientAccountId` (number, required) The ID of the client account the site is associated with Example: 456 - `organizationId` (number, required) The ID of the organization the site belongs to Example: 789 - `brandId` (number, required) The ID of the brand the site is associated with Example: 101 - `practiceManagementSystemId` (number,null) The ID of the practice management system used by the site Example: 202 - `integrationType` (string, required) Integration type for the site Enum: "PMS", "CUSTOM" - `licenseKey` (string,null) The license key for the site Example: "XXX-YYY-ZZZ-AAA-BBB" - `fhirStoreId` (string,null) The ID of the FHIR store associated with the site Example: "fhir-store-123" - `firstSyncDate` (string,null) The date of the first sync with the site Example: "2021-05-15T12:00:00Z" - `latestSyncDate` (string,null) The date of the most recent sync with the site Example: "2021-06-01T12:00:00Z" - `synchronizationIsActive` (boolean,null) Indicates whether synchronization is active Example: true - `siteManagerUserId` (number, required) The ID of the user who manages the site Example: 303 - `cloudUserName` (string,null) The cloud username for the site Example: "downtown.clinic" - `cloudUserPassword` (string,null) The cloud user password for the site Example: "encrypted-password" - `cloudOrganizationName` (string,null) The name of the cloud organization for the site Example: "HealthCorp Cloud" - `cloudLoginUrl` (string,null) The URL for cloud login Example: "https://cloud.healthcorp.com/login" - `clientAccount` (object, required) The client account associated with the site - `clientAccount.id` (number, required) The ID of the client account Example: 456 - `clientAccount.title` (string, required) The title of the client account Example: "HealthCorp Client" - `clientAccount.phoneNumber` (string,null) The phone number of the client account Example: "+1 (555) 123-4567" - `clientAccount.website` (string,null) The website of the client account Example: "https://healthcorp.com" - `clientAccount.isEnabled` (boolean, required) Indicates whether the client account is enabled Example: true - `clientAccount.createdAt` (string, required) The date and time the client account was created Example: "2021-05-01T12:00:00Z" - `clientAccount.updatedAt` (string, required) The date and time the client account was last updated Example: "2021-05-01T12:00:00Z" - `organization` (object, required) The organization the site belongs to - `organization.id` (number, required) The ID of the organization the site belongs to Example: 123 - `organization.title` (string, required) The title of the organization Example: "HealthCorp" - `organization.website` (string,null) The website of the organization Example: "https://healthcorp.com" - `organization.isEnabled` (boolean, required) Indicates whether the organization is enabled Example: true - `organization.clientAccountId` (number,null) The ID of the client account the organization is associated with Example: 456 - `organization.createdAt` (string, required) The date and time the organization was created Example: "2021-05-01T12:00:00Z" - `organization.updatedAt` (string, required) The date and time the organization was last updated Example: "2021-05-01T12:00:00Z" - `brand` (object, required) The brand the site is associated with - `brand.id` (number, required) The ID of the brand the site is associated with Example: 789 - `brand.title` (string, required) The title of the brand Example: "HealthCorp Brand" - `brand.isEnabled` (boolean, required) Indicates whether the brand is enabled Example: true - `brand.organizationId` (number,null) The ID of the organization the brand is associated with Example: 123 - `brand.clientAccountId` (number,null) The ID of the client account the brand is associated with Example: 456 - `brand.createdAt` (string, required) The date and time the brand was created Example: "2021-05-01T12:00:00Z" - `brand.updatedAt` (string, required) The date and time the brand was last updated Example: "2021-05-01T12:00:00Z" - `practiceManagementSystem` (object, required) The practice management system used by the site - `practiceManagementSystem.id` (number, required) The ID of the practice management system Example: 101 - `practiceManagementSystem.title` (string, required) The title of the practice management system Example: "MedicalSoft Pro" - `practiceManagementSystem.isCloudBased` (boolean, required) Indicates whether the system is cloud-based Example: true - `practiceManagementSystem.isEnabled` (boolean, required) Indicates whether the system is enabled Example: true - `practiceManagementSystem.createdAt` (string, required) The date and time the system was created Example: "2021-05-01T12:00:00Z" - `practiceManagementSystem.updatedAt` (string, required) The date and time the system was last updated Example: "2021-05-01T12:00:00Z" - `createdByUser` (object, required) The user who created the site - `createdByUser.id` (number, required) The ID of the user who created the site Example: 202 - `createdByUser.email` (string, required) The email of the user Example: "john.doe@healthcorp.com" - `createdByUser.firstName` (string, required) The first name of the user Example: "John" - `createdByUser.lastName` (string, required) The last name of the user Example: "Doe" - `createdByUser.role` (string, required) The role of the user Example: "ADMIN" - `createdByUser.isEnabled` (boolean, required) Indicates whether the user is enabled Example: true - `createdByUser.createdAt` (string, required) The date and time the user was created Example: "2021-05-01T12:00:00Z" - `createdByUser.updatedAt` (string, required) The date and time the user was last updated Example: "2021-05-01T12:00:00Z" - `createdByUser.lastLoginDate` (string,null) The date and time the user last logged in Example: "2021-06-01T12:00:00Z" - `siteUsers` (array, required) The users associated with the site - `siteUsers.id` (number, required) The ID of the user-site relationship Example: 404 - `siteUsers.userId` (number, required) The ID of the user Example: 505 - `siteUsers.siteId` (number, required) The ID of the site Example: 606 - `siteUsers.createdAt` (string, required) The date and time the relationship was created Example: "2021-05-01T12:00:00Z" - `siteUsers.updatedAt` (string, required) The date and time the relationship was last updated Example: "2021-05-01T12:00:00Z" - `siteManagerUser` (object, required) The user who manages the site - `siteManagerUser.id` (number, required) The ID of the user who manages the site Example: 303 - `siteManagerUser.email` (string, required) The email of the site manager Example: "manager@healthcorp.com" - `siteManagerUser.firstName` (string, required) The first name of the site manager Example: "Jane" - `siteManagerUser.lastName` (string, required) The last name of the site manager Example: "Smith" - `siteManagerUser.role` (string, required) The role of the site manager Example: "SITE_MANAGER_USER" - `siteManagerUser.isEnabled` (boolean, required) Indicates whether the site manager is enabled Example: true - `siteManagerUser.createdAt` (string, required) The date and time the site manager was created Example: "2021-05-01T12:00:00Z" - `siteManagerUser.updatedAt` (string, required) The date and time the site manager was last updated Example: "2021-05-01T12:00:00Z" - `siteManagerUser.lastLoginDate` (string,null) The date and time the site manager last logged in Example: "2021-06-01T12:00:00Z" - `integrationTosAcceptedAt` (string, required) The date and time the site accepted the integration TOS Example: "2021-08-01T00:00:00.000Z" ## 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 403 fields ## Response 404 fields