Collaborators

Change a collaborator's role

Changes a collaborator's role. The answer is the collaborators.

patch/v2/pens/{id}/collaborators/{username}

Request

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

Request body

role'Editor' | 'Viewer' required

Response

The collaborators.

is_team_memberboolean required
namestring required
role'Owner' | 'Editor' | 'Viewer' required
usernamestring required

Changes

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