Collections

Add a Pen to a Collection

Adds one of the key owner's Pens to the Collection, including a Pen made in the classic editor. The answer is the Collection.

put/v2/collections/{id}/pens/{pen_id}

Request

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

Response

The Collection.

access'Public' | 'Private' required

Private needs a PRO plan.

created_atstring date-time required
descriptionstring required
idstring required
items_countinteger required
popularityinteger required
titlestring required
updated_atstring date-time required
urlstring uri required

Changes

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