Website editors

Set a website editor’s role

Sets the principal’s editor role on this single website, replacing any existing grant for that principal. role is full (full website editing) or content (content editing only). Principals who already inherit access through their organization role are rejected with a validation error. Use websites.editors.add to add someone by email instead of principal id.

put/websites/{websiteId}/editors/{principalId}

Request

  • Base URL: https://api.cactal.ai/v1
  • URL: https://api.cactal.ai/v1/websites/{websiteId}/editors/{principalId}
  • Auth: HTTP bearer

Path parameters

websiteIdstring required
principalIdstring required

Request body

role'full' | 'content' required

Response

The saved editor grant.

websiteIdstring required

Id of the website the grant applies to.

principalIdstring required

Id of the principal holding the grant.

role'full' | 'content' required

full allows full website editing; content allows content editing only.

createdAtstring date-time required

When the grant was created.

Changes

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