// This file is autogenerated, DO NOT EDIT
// snapshot-restore/apis/put-repo-api.asciidoc:16

[source, python]
----
resp = client.snapshot.create_repository(
    name="my_repository",
    repository={
        "type": "fs",
        "settings": {
            "location": "my_backup_location"
        }
    },
)
print(resp)
----
