POST
/
projects
import Scorecard from 'scorecard-ai';

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

async function main() {
  const project = await client.projects.create({ description: 'This is a test project', name: 'My Project' });

  console.log(project.id);
}

main();
{
  "id": "314",
  "name": "My Project",
  "description": "This is a test project"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

201
application/json

Project created successfully

A Project in the Scorecard system.