Update a docs project
Update project settings. Set isPrivate with accessGroups to put the site behind a login.
OAuth scopes
- platform:write
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}
curl https://access.scalar.com/v1/docs/acme-docs \
--request PATCH \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"name": "Acme Documentation",
"isPrivate": false,
"accessGroups": [
"UakgbKJ5m9gl0JDMbcJqL"
],
"loginPortalUid": "LakgbKJ5m9gl0JDMbcJqL",
"activeThemeId": "TakgbKJ5m9gl0JDMbcJqL",
"agentEnabled": true,
"analyticsEnabled": true
}'
null