Invoking Test Data Management REST APIs Using cURL

Invoking Test Data Management REST APIs Using cURL

Run the workflow

Run the workflow

Run the workflow to create test data in the target connection.
You can run the
/tdm/v1/jobs
API to run a workflow.
  1. Enter the following cURL API request:
    curl -X POST "http://<host>:<port>/api/public/tdm/v1/jobs" -H "accept: application/json" -H "authorization: Basic TmF0aXZlL0FkbWluaXN0cmF0b3I6QWRtaW5pc3RyYXRvcg==" -H "Content-Type: multipart/form-data" -F "type=Execute" -F "projectId=2412" -F "planId=2211" -F "integrationServiceName=PCIS"
  2. Press Enter.
  3. Review the response.
    The following code is the response that the sample request returns:
    {"id":3420,"name":"Execute Workflow","description":"Plan: Plan_mask_test, Workflow: ","status":"In Queue", "start_date":0,"end_date":0,"job_type":"Execute Workflow", "created_by_name":null,"creation_date":1561633441828, "creation_date_str":"06/27/2019 04:34:01 PM", "last_updated_date":1561633441828,"last_updated_date_str":"06/27/2019 04:34:01 PM", "last_updated_by_name":null,"schedule_on":0,"paused_at_step":0,"percent_complete":0, "job_action_type":null,"child_job_id":-1}
The job to run the workflow has an ID of 3420. To verify that the workflow runs successfully, you can monitor the workflow execution job.

0 COMMENTS

We’d like to hear from you!