Create a docs project

​

Create a docs project. Omit provider to have Scalar host the repository.

OAuth scopes
  • write

Body

required
application/json
  • Properties: 2
  • Properties: 2

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/v1/docs
curl https://access.scalar.com/v1/docs \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "name": "",
  "slug": "",
  "isPrivate": true,
  "blank": true,
  "provider": "forgejo",
  "githubRepository": {
    "installationId": -9007199254740991,
    "repoId": -9007199254740991
  },
  "bitbucketRepository": {
    "workspaceUuid": "",
    "repoUuid": ""
  }
}'
{
  "uid": "nanoid()",
  "name": "string",
  "slug": "string",
  "isPrivate": false,
  "accessGroups": [],
  "loginPortalUid": "",
  "activeThemeId": "",
  "agentEnabled": false,
  "analyticsEnabled": true,
  "lastPublished": null,
  "publishStatus": ""
}