Importing Project Data Using the REST API

Use the following instructions to import project data by explicitly executing a cURL command that calls the Import Project Data REST API. (Alternatively, you can invoke this API using an API client such as Postman. See Importing Project Data Using the Postman API Client.)

Note:When you use the Import Project Data REST API, the import does not run as a background job as it does when executed through the UI.

To run an import, do the following:

1. Ensure that all prerequisites in Prerequisites for Importing Data and Prerequisites When Using the REST Interface for Project Exports and Imports are met.
2. Set up a cURL command to invoke the Import Project Data REST API (import endpoint). You choose one of these methods in which to execute the command:
Explicitly Providing Import Attributes in the “curl” Command
Pointing the “curl” Command to a File Containing the Import Attributes
3. Execute the command.

When the import is complete, a status message with OK will appear in the command prompt window. If the import is not successful, a status code and error message is displayed.

4. Verify that the import results are what you expected. See Verifying the Import Results.