Deployments

Deploy a Pen

Deploys a saved version, the saved head unless version_id says otherwise, and answers the deployment.

put/v2/pens/{id}/deployment

Request

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

Request body

version_idstring

The version to deploy; the saved head when omitted.

Response

The deployment.

created_atstring date-time required
custom_domainsstring[] required
idstring required
updated_atstring date-time required
urlstring uri required
version_idstring required

Changes

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