// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples

[source, js]
----
const response = await client.snapshot.createRepository({
  name: "my_src_only_repository",
  repository: {
    type: "source",
    settings: {
      delegate_type: "fs",
      location: "my_backup_repository",
    },
  },
});
console.log(response);
----
