Skip to content

Commit 4b289f7

Browse files
author
Renat Zubairov
committed
Update api_tutorial.md
1 parent 6ea2c69 commit 4b289f7

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

api_tutorial.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ As you can see above it's a simple integraiton flow with two components. Don't f
8585
Now post the contents of this file to ``/v1/tasks`` like this:
8686

8787
```
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
8993
```
9094

9195
And you'll see the result like this:
@@ -94,3 +98,30 @@ And you'll see the result like this:
9498
{"id":"123456789"}
9599
```
96100

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

0 commit comments

Comments
 (0)