Overview

Update theme document

PUT/v1/themes/{slug}
Features

Replace the theme document.

Input2
Authorizationheaderrequired
Your API key, sent as Authorization: Bearer YOUR_SCALAR_ACCESS_TOKEN.Sent from your browser straight to the API — never to Docsbook, never stored.
slugstring · pathrequired
documentstring · bodyrequired
Responses
200Default Response
400Bad request
401No auth
403Forbidden
404Not found
422Invalid payload
500Uncaught error
Example input
curl -X PUT 'https://access.scalar.com/v1/themes/{slug}' \
  -H 'Authorization: Bearer YOUR_SCALAR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"document":"<document>"}'

Updated

Was this page helpful?