Imports Design Objects
post
[host-url]/dt-rest/v2/migration/import
Import objects provided by zip file indicated in the request body, which includes the object storage connection ID, import file name, and import options.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
objectJSON payload with details for importing data.
Show Source
-
importFileName(required): string
-
importOption(required): string
Allowed Values:
[ "MERGE", "OVERWRITE" ]Enumerates the types of import options that can be performed.- Merge: Overwrite the target container with the source container, and then loop over the children for merging. Each child may have a different action. Child FCOs that are not in the import file will not be deleted.
- Overwrite: Overwrite target object with source object. Any child objects remaining after import come from the source object. Note that this applies to all the child objects (If a project overwrites another, all the folders in this project will be replaced and any extra folders will be removed).
-
jobDTO:
RuntimeJobDTO
-
objectStorageConnectionId(required): string
Example:
{
"objectStorageConnectionId":"your_obj_storage_connection_id",
"importFileName":"your_file_name.zip",
"importOption":"MERGE"
}Nested Schema : RuntimeJobDTO
Match All
JSON that represents a job during runtime with additional job metadata, such as execution statistics, record statistics, and job variables.
Show Source
-
object
RuntimeJobBaseDTO
Represents a job during runtime.
-
object
RuntimeJobDTO-allOf[1]
JSON that represents a job during runtime with additional job metadata, such as execution statistics, record statistics, and job variables.
Nested Schema : RuntimeJobBaseDTO
Type:
objectRepresents a job during runtime.
Show Source
-
endDate: string
(date-time)
-
jobId: string
-
jobName(required): string
-
jobNumber: integer
(int64)
-
startDate: string
(date-time)
-
status: string
Allowed Values:
[ "WAITING", "ERROR", "RUNNING", "DONE", "WARNING", "QUEUED", "NOT_STARTED", "PREPARING", "VALID", "INVALID" ]Enumerates the possible statuses of a job.- Waiting: The Job is waiting to be executed.
- Error: The Job terminated due to an error.
- Running: The Job is being executed.
- Done: The Job executed successfully.
- Warning: The Job completed successfully but errors have been detected during the data quality check.
- Queued: The Job is waiting for an agent to be available for its execution.
- Not started: The Job has not started.
- Preparing: The Job is preparing to be executed.
- Valid: The Job is valid to be executed.
- Invalid: The Job is not valid to be executed.
Nested Schema : RuntimeJobDTO-allOf[1]
Type:
objectJSON that represents a job during runtime with additional job metadata, such as execution statistics, record statistics, and job variables.
Show Source
-
errorMessage: string
-
executionStatistics: object
executionStatistics
Complex object: ExecutionStatisticsDTO
-
jobVariables: object
jobVariables
Additional Properties Allowed: additionalProperties
-
recordStatistics: object
recordStatistics
Complex object: RecordStatisticsDTO
-
synchronous: boolean
Nested Schema : executionStatistics
Type:
objectComplex object: ExecutionStatisticsDTO
Nested Schema : recordStatistics
Type:
objectComplex object: RecordStatisticsDTO
Response
Supported Media Types
- application/json
200 Response
Response object containing the job information for the Import job.
Root Schema : schema
Type:
objectJSON payload with details for importing data.
Show Source
-
importFileName(required): string
-
importOption(required): string
Allowed Values:
[ "MERGE", "OVERWRITE" ]Enumerates the types of import options that can be performed.- Merge: Overwrite the target container with the source container, and then loop over the children for merging. Each child may have a different action. Child FCOs that are not in the import file will not be deleted.
- Overwrite: Overwrite target object with source object. Any child objects remaining after import come from the source object. Note that this applies to all the child objects (If a project overwrites another, all the folders in this project will be replaced and any extra folders will be removed).
-
jobDTO:
RuntimeJobDTO
-
objectStorageConnectionId(required): string
Example:
{
"objectStorageConnectionId":"your_obj_storage_connection_id",
"importFileName":"your_file_name.zip",
"importOption":"MERGE"
}Nested Schema : RuntimeJobDTO
Match All
JSON that represents a job during runtime with additional job metadata, such as execution statistics, record statistics, and job variables.
Show Source
-
object
RuntimeJobBaseDTO
Represents a job during runtime.
-
object
RuntimeJobDTO-allOf[1]
JSON that represents a job during runtime with additional job metadata, such as execution statistics, record statistics, and job variables.
Nested Schema : RuntimeJobBaseDTO
Type:
objectRepresents a job during runtime.
Show Source
-
endDate: string
(date-time)
-
jobId: string
-
jobName(required): string
-
jobNumber: integer
(int64)
-
startDate: string
(date-time)
-
status: string
Allowed Values:
[ "WAITING", "ERROR", "RUNNING", "DONE", "WARNING", "QUEUED", "NOT_STARTED", "PREPARING", "VALID", "INVALID" ]Enumerates the possible statuses of a job.- Waiting: The Job is waiting to be executed.
- Error: The Job terminated due to an error.
- Running: The Job is being executed.
- Done: The Job executed successfully.
- Warning: The Job completed successfully but errors have been detected during the data quality check.
- Queued: The Job is waiting for an agent to be available for its execution.
- Not started: The Job has not started.
- Preparing: The Job is preparing to be executed.
- Valid: The Job is valid to be executed.
- Invalid: The Job is not valid to be executed.
Nested Schema : RuntimeJobDTO-allOf[1]
Type:
objectJSON that represents a job during runtime with additional job metadata, such as execution statistics, record statistics, and job variables.
Show Source
-
errorMessage: string
-
executionStatistics: object
executionStatistics
Complex object: ExecutionStatisticsDTO
-
jobVariables: object
jobVariables
Additional Properties Allowed: additionalProperties
-
recordStatistics: object
recordStatistics
Complex object: RecordStatisticsDTO
-
synchronous: boolean
Nested Schema : executionStatistics
Type:
objectComplex object: ExecutionStatisticsDTO
Nested Schema : recordStatistics
Type:
objectComplex object: RecordStatisticsDTO
401 Response
Unauthorized
403 Response
Forbidden
404 Response
Not Found
409 Response
Conflict