# Kibana REST API / Saved Objects API Failing When Running From Source (v8.13.4)

**URL:** <https://discuss.elastic.co/t/kibana-rest-api-saved-objects-api-failing-when-running-from-source-v8-13-4/377098>\
**Category:** Kibana\
**Tags:** dashboard\
**Created:** [April 14, 2025, 7:58am UTC](https://discuss.elastic.co/t/kibana-rest-api-saved-objects-api-failing-when-running-from-source-v8-13-4/377098 "2025-04-14T07:58:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anirudh\_Nagothu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anirudh_nagothu/32/141262_2.png) [@Anirudh\_Nagothu](https://discuss.elastic.co/u/Anirudh_Nagothu)\
**Post date:** [April 14, 2025, 7:58am UTC](https://discuss.elastic.co/t/kibana-rest-api-saved-objects-api-failing-when-running-from-source-v8-13-4/377098/1 "2025-04-14T07:58:54Z")

</div>

I am running Kibana directly from the source code cloned from GitHub (version **8.13.4** ) and have disabled security via `xpack.security.enabled: false` in both `elasticsearch.yml` and `kibana.yml`.

When I attempt to import saved objects (like dashboards) using the `_import` REST API against this source build, the call fails. For example, running the following `curl` command (using a valid `export.ndjson` file containing a dashboard):

```auto
curl.exe -X POST "http://localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form "file=@export.ndjson"

```

Results in a simple **"Not Found"** response (likely HTTP 404).

This prevents me from programmatically managing dashboards and other saved objects on my development instance.

**Importantly** , if I run the _exact same `curl` command_ against a standard _installed_ distribution build of Kibana 8.13.4 (with security disabled using the identical configuration changes), the import **succeeds** as expected, returning:

```auto
{"successCount":1,"success":true,"warnings":[],"successResults":[{"type":"dashboard","id":" ***","meta":{"title":"**","icon":"**"},"managed":false}]}

```

This issue seems specific to running Kibana from the source code development environment.

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [April 14, 2025, 11:27am UTC](https://discuss.elastic.co/t/kibana-rest-api-saved-objects-api-failing-when-running-from-source-v8-13-4/377098/2 "2025-04-14T11:27:42Z")

</div>

Is your development url really `http://localhost:5601/api/` ?

Usually in development there are three random letters that prepend your URLs as in

`http://localhost:5601/xyz/api`

That may be the reason for a `404` error.

---

<div class="post-metadata">

**Author:** ![Anirudh\_Nagothu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anirudh_nagothu/32/141262_2.png) [@Anirudh\_Nagothu](https://discuss.elastic.co/u/Anirudh_Nagothu)\
**Post date:** [April 15, 2025, 11:28am UTC](https://discuss.elastic.co/t/kibana-rest-api-saved-objects-api-failing-when-running-from-source-v8-13-4/377098/3 "2025-04-15T11:28:38Z")

</div>

Thankyou Jorge, it resolved my issue.
