REST API Reference > Application Ingestion and Replication REST API > Create an application ingestion and replication task
  

Create an application ingestion and replication task

Use the ABC resource to create an application ingestion and replication task. The response includes the ABC ID that you can use in subsequent API calls.

POST request

Use the following URI to create an application ingestion and replication task:
/dbmi/public/api/v2/task/create
Use the following fields in the POST request:
Field
Type
Required / Optional
Description
projectId
string
no
The ID of the project(location) where the user wants to create the task.(default: "Default")
folderId
string
no
The ID of the folder where user wants to create the task inside project.(default: "")
taskName
string
yes
The name of the task which has to be created
nativeData
JSON object
yes
Entire task payload refer including source properties map, target properties map, runtime setting etc

POST response

The following variable is set from the response attributes:
Name
Response Value
Note
CODE_TASK_ID
codeTaskId
Used in the start and view code task resources.

POST request example

Use the following sample as a reference to create a application ingestion and replication task:
POST /dbmi/public/api/v2/task/create
Content-Type: application/json
Accept: application/json
IDS-SESSION-ID:{{IDS_SESSION_ID}}
{
"projectID": "<projectId>",
"folderID":"<folderId",
"taskName": "<taskName>",
"nativeData": {
//Entire Task (JSON) Payload, having full task definition
}
}
}

POST response example

A successful POST response returns a summary, ….. similar to the following example:
{
"@odata.context": "$metadata#Documents",
"id": "49Ad323lvrNky7ZKPr6e6o",
"name": "sapodpTosnowflake57ccfd92-2985-47e3-89a0-c5612fcaa",
"description": "UNLOAD",
"owner": "29JnX3zg0EVild2QuRlUc2",
"createdBy": "29JnX3zg0EVild2QuRlUc2",
"lastUpdatedBy": "29JnX3zg0EVild2QuRlUc2",
"lastAccessedBy": "29JnX3zg0EVild2QuRlUc2",
"createdTime": "2023-03-15T15:00:00.719Z",
"lastUpdatedTime": "2023-03-15T15:00:00.719Z",
"lastAccessedTime": "2023-03-15T15:00:01.728Z",
"expiresBy": "2038-01-18T00:00:00Z",
"parentInfo": [
{
"parentId": "7cCn5thwWFLhiZoSosphKL",
"parentName": "REG",
"parentType": "Space"
},
{
"parentId": "6E442DkEnGbhO1L31w2UW3",
"parentName": "Ramya",
"parentType": "Project"
},
{
"parentId": "7oUOa49tVKzexgnzp3zyIc",
"parentName": "SAP_ABAP",
"parentType": "Folder"
}
],
"documentType": "APPMI_TASK",
"contentType": "JSON",
"documentState": "VALID",
"aclRule": "org",
"subcontainerCount": 0,
"customAttributes": null,
"repoInfo": {
"repoParams": [

],
"repoPath": null,
"repoHandle": "487797", //this is the dbmiTaskId we would be using further
"frsPath": null
},
"isSourceControlled": false,
"checkedOutById": null
}