# Add a new page to be indexed maunaly via api

**URL:** https://discuss.elastic.co/t/add-a-new-page-to-be-indexed-maunaly-via-api/160783
**Category:** Elastic Search
**Tags:** elastic-site-search
**Created:** [December 13, 2018, 4:47pm UTC](https://discuss.elastic.co/t/add-a-new-page-to-be-indexed-maunaly-via-api/160783 "2018-12-13T16:47:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![elitzur\_e](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitzur_e/32/48445_2.png) [@elitzur\_e](https://discuss.elastic.co/u/elitzur_e)
#### Post date: [December 13, 2018, 4:47pm UTC](https://discuss.elastic.co/t/add-a-new-page-to-be-indexed-maunaly-via-api/160783/1 "2018-12-13T16:47:06Z")

</div>

Hello.  
i am trying to use swiftype web search that already crawled my site and manualy add a page. when trying to add content like this:  
{  
"auth\_token": "\_\_\_\_\_\_\_\_",  
"document": {  
"external\_id": "2",  
"fields": [  
{"title": "title", "body": "viper123", "type": "string"}  
]}  
}  
i get:  
"error": "This API action is prohibited on Engines created using the Swiftype web crawler."

why is that?

thanks

---

<div class="post-metadata">

### Author: ![goodroot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goodroot/32/38389_2.png) [@goodroot](https://discuss.elastic.co/u/goodroot)
#### Post date: [December 13, 2018, 5:03pm UTC](https://discuss.elastic.co/t/add-a-new-page-to-be-indexed-maunaly-via-api/160783/2 "2018-12-13T17:03:59Z")

</div>

Hello!

Thank you very much for posting -- we have recently opened this forum, so it's great to see thoughts arrive.

We have two Engine types: an API based Engine and a Crawler based Engine. Crawler based Engines use the crawler to ingest and index documents. API based Engines use the API for ingestion and indexing.

You can read more about the differences within the API Overview: [https://swiftype.com/documentation/site-search/overview#engine\_types](https://swiftype.com/documentation/site-search/overview#engine_types).

Let me know if you have anymore questions!

Kellen

---

<div class="post-metadata">

### Author: ![elitzur\_e](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitzur_e/32/48445_2.png) [@elitzur\_e](https://discuss.elastic.co/u/elitzur_e)
#### Post date: [December 13, 2018, 5:09pm UTC](https://discuss.elastic.co/t/add-a-new-page-to-be-indexed-maunaly-via-api/160783/3 "2018-12-13T17:09:30Z")

</div>

Hi. yea just found that post... site needs to be a bit cleaner :P.

| Endpoint | Supported Engines |
| --- | --- |
| Document Indexing | API-based Engine only. |
| Crawler Operations | Crawler-based Engine only. |
| Engines | Account level. |
| Search | Both. |
| Autocomplete | Both. |
| Analytics | Both. |

bummer...  
what i was wondering if its possible to have CMS like umbraco publish to the index while having the Crawler-based Engine working...

---

<div class="post-metadata">

### Author: ![mikeisonthenets](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikeisonthenets/32/38395_2.png) [@mikeisonthenets](https://discuss.elastic.co/u/mikeisonthenets)
#### Post date: [December 13, 2018, 7:05pm UTC](https://discuss.elastic.co/t/add-a-new-page-to-be-indexed-maunaly-via-api/160783/4 "2018-12-13T19:05:10Z")

</div>

What you could potentially do instead of attempting to push raw JSON is write a function that hits the `crawl_url` endpoint with the published content URL to (re)visit whenever a page is added, updated, or deleted.

That way you can keep your search engine index fresh prior to the next full recrawl process: [https://swiftype.com/documentation/site-search/api-crawler-operations#crawl-url](https://swiftype.com/documentation/site-search/api-crawler-operations#crawl-url)

---

<div class="post-metadata">

### Author: ![elitzur\_e](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitzur_e/32/48445_2.png) [@elitzur\_e](https://discuss.elastic.co/u/elitzur_e)
#### Post date: [December 16, 2018, 10:52am UTC](https://discuss.elastic.co/t/add-a-new-page-to-be-indexed-maunaly-via-api/160783/5 "2018-12-16T10:52:38Z")

</div>

COOL. ill try that.  
thanks

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 13, 2019, 10:52am UTC](https://discuss.elastic.co/t/add-a-new-page-to-be-indexed-maunaly-via-api/160783/6 "2019-01-13T10:52:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
