diff --git a/content/v3/enterprise/search_indexing.md b/content/v3/enterprise/search_indexing.md index 1054d598be..72c6afc7a9 100644 --- a/content/v3/enterprise/search_indexing.md +++ b/content/v3/enterprise/search_indexing.md @@ -19,7 +19,7 @@ http(s)://hostname/api/v3 POST /staff/indexing_jobs -### Parameters +### Input Name | Type | Description --------|---------|-------------- @@ -37,16 +37,14 @@ Target | Description `:owner/:repository/code` | All the source code in a repository. `:owner/*/code` | All the source code in all of a user or organization's repositories. -### Response - -<%= headers 202 %> -<%= json(:indexing_success) %> - ### Example
-$ curl -u jwatson -X POST "http://hostname/api/v3/staff/indexing_jobs?target=jwatson%2Flaughing-robot"
-{
-  "message": "Repository \"jwatson/laughing-robot\" has been added to the indexing queue"
-}
+$ curl -u jwatson -X POST -H "Content-Type: application/json" -d '{"target": "kansaichris/japaning"}' "http://hostname/api/v3/staff/indexing_jobs"
 
+ + +### Response + +<%= headers 202 %> +<%= json(:indexing_success) %>