provider Code references POST /api/v2/code-refs/repositories
@utdk/launchdarkly /api/v2/code-refs/repositories
Create repository
Create a repository with the specified name.

Try it

Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

postrepository
POST/api/v2/code-refs/repositories
Create a repository with the specified name.

Input

required

The repository name

A URL to access the repository

A template for constructing a valid URL to view the commit

A template for constructing a valid URL to view the hunk

The type of repository. If not specified, the default value is <code>custom</code>.

The repository's default branch. If not specified, the default value is <code>main</code>.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.postrepository()