Create a project

Create a guide project.

Body
required
application/json
  • allowedDomains
    Type: array string[]
    required
  • allowedUsers
    Type: array string[]
    required
  • isPrivate
    Type: boolean
    required
  • name
    Type: string
    required
  • slug
Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/v1/guides
import { Scalar } from "@scalar/sdk";

const scalar = new Scalar({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await scalar.scalarDocs.postv1Guides({
    name: "<value>",
    allowedUsers: [
      "<value 1>",
      "<value 2>",
      "<value 3>",
    ],
    allowedDomains: [
      "<value 1>",
      "<value 2>",
      "<value 3>",
    ],
  });

  console.log(result);
}

run();
{
  "uid": "string",
  "slug": "string"
}