Create a docs project
Create a docs project. Omit provider to have Scalar host the repository.
OAuth scopes
- write
Body
required
application/json
- Type: stringnamerequired
- Type: "forgejo" or "github" or "bitbucket"enumproviderrequired
- Properties: 2Type: objectbitbucket
Repository - Type: booleanblank
- Properties: 2Type: objectgithub
Repository - Type: booleanis
Private - Type:slugmin length:1max length:60
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": ""
}