- URL:https://<services-url>/importServices(POST only)
- Required Capability:Default administrator role | All authorized privileges
- Related Resources:Export Services
- Version Introduced:10.5
Imports the site services from a provided .agssiteservices file previously generated by the export services operation.
A ID or file path with the extension of .agssiteservices.
Importing Services can take some time. Upon completion, the operation will print a report on the import services page. The report is not persisted on the server and will be lost if you navigate away from the import services page. Some of the messages and warnings generated by this operation will be accessible in the logs.
File path example
The response format. The default response format is html.
Values: html | json | pjson
Below is a sample POST request for importServices using an ID:
POST /arcgis/admin/importServices HTTP/1.1 Host: machine.domain.com Content-Type: application/x-www-form-urlencoded Content-Length:  location=i5fad5582-80bc-4155-a21c-62f326354aba&f=json
Below is a sample POST request for importServices using a file path:
POST /arcgis/admin/importServices HTTP/1.1 Host: machine.domain.com Content-Type: application/x-www-form-urlencoded Content-Length:  location=\\server\share\backup\<timestamp>.agssiteservices&f=json