Skip to main content
POST
/
v1
/
repositories
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: 'My Bearer Token',
});

const repositoryConnectionView = await client.repositories.create({ name: 'name', owner: 'owner' });

console.log(repositoryConnectionView.id);
{
  "id": "<string>",
  "name": "<string>",
  "owner": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Name of the repository.

owner
string
required

Account owner of the repository.

github_auth_token
string | null

GitHub authentication token for accessing private repositories.

blueprint_id
string | null

ID of blueprint to use as base for resulting RepositoryVersion blueprint.

Response

200 - application/json

OK

The ID of the Repository.

id
string
required

The ID of the Repository.

name
string
required

The name of the Repository.

owner
string
required

The account owner of the Repository.

I