This request allows you to import a site that was created in the Desktop version of the software, such as Smart Engineering Manager 2019 or a site that was excluded by the Exclude site request. Importing a site allows you to view and work with it under the endpoint source for the server on which Smart Engineering Manager Web API is installed.
Do not import a site into more than one endpoint source. This may lead to a situation
where multiple users are trying to change site data simultaneously resulting in data
corruption.
It is not possible to import sites that belong to inactive endpoint sources or endpoint
sources that are not of type SEM.
Use the POST method to import a site with the following input:
-
Service Root URI: https://<Server Name>/<IIS Application Name>/sem/v4
-
Resource path: /Sites/Com.Ingr.Sem.v2.Import/
-
Resource path strings are case-sensitive.
-
The backslash at the end of the resource path is mandatory.
Sample URI
POST
https://WebApiServer1.APIServerDomain.com/sem-webapi/sem/v4/Sites/Com.Ingr.Sem.v2.Import/
Sample JSON request
Backslashes used in paths must be doubled as shown below.
{
"IniFilePath": "\\\\sem-sites\\WebAPI_Sites\\WebAPISite01",
"SiteAdminUserGroup": "Companydomain.com/SiteAdmin Users"
}
JSON request parameters
Parameter |
Value |
Description and Comments |
---|---|---|
IniFilePath |
<path for site .ini file location> |
Existing path for specified site |
SiteAdminUserGroup |
<Domain Name/User Group> |
What do you want to do next?