File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,11 @@ As you can see above it's a simple integraiton flow with two components. Don't f
85
85
Now post the contents of this file to `` /v1/tasks `` like this:
86
86
87
87
```
88
- curl -u your-email:your-api-key -H 'Accept: application/json' -H 'Content-Type: application/json' -d @task.json https://api.elastic.io/v1/tasks
88
+ curl -u your-email:your-api-key \
89
+ -H 'Accept: application/json' \
90
+ -H 'Content-Type: application/json' \
91
+ -d @task.json \
92
+ https://api.elastic.io/v1/tasks
89
93
```
90
94
91
95
And you'll see the result like this:
@@ -94,3 +98,30 @@ And you'll see the result like this:
94
98
{"id":"123456789"}
95
99
```
96
100
101
+ We just created a new task. Now we can start it.
102
+
103
+ ## Start integration flow
104
+
105
+ Now as we have a Task ID we can easily start it using [ start task] ( http://api.elastic.io/docs/#start-a-task ) API:
106
+
107
+ ```
108
+ curl -u your-email:your-api-key \
109
+ -X POST \
110
+ https://api.elastic.io/v1/tasks/start/{TASK_ID}
111
+ ```
112
+
113
+ As a response you'll see something like this:
114
+
115
+ ``` json
116
+ {
117
+ "id" : " 123456789" ,
118
+ "status" : " active" ,
119
+ "message" : " Your task has been successfully activated."
120
+ }
121
+ ```
122
+
123
+ ## See your integration flow working
124
+
125
+
126
+
127
+ https://www.dropbox.com/s/3u8kqc58b8v24z9/Screenshot%202016-01-30%2012.50.48.png?dl=0
You can’t perform that action at this time.
0 commit comments