Skip to main content

API to run a pipeline with runtime inputs

This knowledge base article walks you through how you can run a pipeline with runtime inputs through API.

Steps

  1. In the pipeline trigger, create the custom webhook.

  2. Copy the curl command from the webhook

  3. Now in the curl command, you can pass the variable name and value in place of sample key and value at runtime while executing the pipeline.

Example cURL:

curl -X POST -H 'content-type: application/json' --url 'https://app.harness.io/gateway/pipeline/' -d '{"samplekey": "samplevalue"}'
AIDA logo
AIDA logo

Harness AIDA Chatbot

AI Development Assistant


Today, March 15, 7:43pm

AIDA logo

Accelerate your software delivery with the powerful capabilities of Harness’s Platform.

AIDA logo

How can I help?

Log into your Harness Account to access AIDA