Settings

Update a Pen's settings

Only the keys given change. The answer is the Pen's settings.

patch/v2/pens/{id}/settings

Request

  • Base URL
    https://api.codepen.io
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Request body

auto_deployboolean
auto_runboolean
auto_saveboolean
indent_with'tabs' | 'spaces'
tab_sizeinteger

Response

The settings.

auto_deployboolean required
auto_runboolean required
auto_saveboolean required
indent_withstring required

tabs or spaces.

tab_sizeinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.