Skip to content

Commit 03a25ca

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent eac4343 commit 03a25ca

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

content/v3/enterprise/search_indexing.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ http(s)://<em>hostname</em>/api/v3
1919

2020
POST /staff/indexing_jobs
2121

22-
### Parameters
22+
### Input
2323

2424
Name | Type | Description
2525
--------|---------|--------------
@@ -37,16 +37,14 @@ Target | Description
3737
`:owner/:repository/code` | All the source code in a repository.
3838
`:owner/*/code` | All the source code in all of a user or organization's repositories.
3939

40-
### Response
41-
42-
<%= headers 202 %>
43-
<%= json(:indexing_success) %>
44-
4540
### Example
4641

4742
<pre class="terminal">
48-
$ curl -u jwatson -X POST "http://<em>hostname</em>/api/v3/staff/indexing_jobs?target=jwatson%2Flaughing-robot"
49-
{
50-
"message": "Repository \"jwatson/laughing-robot\" has been added to the indexing queue"
51-
}
43+
$ curl -u jwatson -X POST -H "Content-Type: application/json" -d '{"target": "kansaichris/japaning"}' "http://<em>hostname</em>/api/v3/staff/indexing_jobs"
5244
</pre>
45+
46+
47+
### Response
48+
49+
<%= headers 202 %>
50+
<%= json(:indexing_success) %>

0 commit comments

Comments
 (0)