Documentation for how to use Neon API to create a branch
i'm not able to create a branch with the nodejs API. I'm getting the error
Object literal may only specify known properties, and 'name' does not exist in type 'BranchCreateRequest'.ts(2353)
This is my code snippet:
I'm using @neondatabase/api-client version 1.8.04 Replies
foreign-sapphire•2y ago
instead of
try
evident-indigoOP•2y ago
can you provide the other parameters for branch? @andyhats
I want to also specify the branch to branch off of
foreign-sapphire•2y ago
yessir, see parent_id on this page https://api-docs.neon.tech/reference/createprojectbranch
Neon
Create a branch
Creates a branch in the specified project.<br/>You can obtain a <button aria-label="Copy Code" class="rdmd-code-copy fa"></button>project_id by listing the projects for your Neon account.This method does not require a request body, but you can specify one to create a compute endpoi...
foreign-sapphire•2y ago
so