POST
/
v1
/
repositories
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

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

  console.log(repositoryConnectionView.id);
}

main();
{
  "id": "<string>",
  "name": "<string>",
  "owner": "<string>",
  "status": "pending",
  "failure_reason": "<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.