# Snapshot Restore

**URL:** https://discuss.elastic.co/t/snapshot-restore/171783
**Category:** Elasticsearch
**Created:** [March 11, 2019, 2:10pm UTC](https://discuss.elastic.co/t/snapshot-restore/171783 "2019-03-11T14:10:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kb2295](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kb2295](https://discuss.elastic.co/u/kb2295)
#### Post date: [March 11, 2019, 2:10pm UTC](https://discuss.elastic.co/t/snapshot-restore/171783/1 "2019-03-11T14:10:02Z")

</div>

Hi,  
I'm trying to snapshot restore using a repository. This is the command i am running:

`PUT -u user:password /_snapshot/my_backup/snapshot_20181011`

and I'm getting this error (in dev tools kibana):  
{  
"error": "Content-Type header [text/plain] is not supported",  
"status": 406  
}

I've tried variations such as  
`PUT -u user:password /_snapshot/my_backup/snapshot_20190308 -H 'Content-Type: application/json' -d`

but i get exactly the same error.

Can someone help me with this?

Thank you!

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [March 11, 2019, 5:08pm UTC](https://discuss.elastic.co/t/snapshot-restore/171783/2 "2019-03-11T17:08:17Z")

</div>

> [@kb2295](#):
>
> `-u user:password`

I do not know that the Kibana dev tools supports passing the username and password like this. I think you don't need to include this, because you already logged into Kibana.

> [@kb2295](#):
>
> `PUT -u user:password /_snapshot/my_backup/snapshot_20190308 -H 'Content-Type: application/json' -d`

You are confusing the syntax for `curl` with the syntax that is permitted in Kibana. You just write

```plaintext
PUT /_snapshot/my_backup/snapshot_20181011
{
  "maybe": {"some": "more"},
  "options": "here"
}

```

---

<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: [April 8, 2019, 5:19pm UTC](https://discuss.elastic.co/t/snapshot-restore/171783/3 "2019-04-08T17:19:36Z")

</div>

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