Pens
Update a Pen
Only the keys given change; an empty body returns the Pen unchanged. The metadata is saved first and the access change second, so a refused access change leaves the metadata saved.
patch/v2/pens/{id}
Request
- Base URLhttps://api.codepen.io
- Auth
- HTTP bearer
- or API key in header X-API-Key
Request body
Response
The Pen.
Example response
{
"build": {
"files": [
{
"name": "app.js",
"path": "/src/app.js"
}
]
},
"saved_version": {
"build": {
"files": [
{
"name": "app.js",
"path": "/src/app.js"
}
]
},
"files": [
{
"name": "app.js",
"path": "/src/app.js"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.