Update a docs project
Update project settings. Set isPrivate with accessGroups to put the site behind a login.
OAuth scopes
- 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/{slug}' \
--request PATCH \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"name": "",
"isPrivate": true,
"accessGroups": [
""
],
"loginPortalUid": "",
"activeThemeId": "",
"agentEnabled": true,
"analyticsEnabled": true
}'
null