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

Response

200 - application/json

OK

The ID of the Repository.