Update a docs project
Update project settings. Set isPrivate with accessGroups to put the site behind a login.
Path Parameters
- Type: stringslugrequired
Body
required
application/json
- Type: …50access
Groups min length:5 - Type:active
Theme Id min length:5 - Type: booleanagent
Enabled - Type: booleananalytics
Enabled - Type: booleanis
Private - login
Portal Uid - Type:min length:5
- Type: stringname
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for patch/v1/docs/{slug}
import Scalar from '@scalar/sdk';
const client = new Scalar({
bearerAuth: process.env['BEARER_AUTH'], // defaults to the BEARER_AUTH env var
});
await client.scalarDocs.updateProject('acme-docs', {});
null