site-controller

Grant a user, org or group a role on this site

post/api/sites/{slug}/access

Request

  • Base URL: https://api.pagegoat.com
  • URL: https://api.pagegoat.com/api/sites/{slug}/access
  • Auth: HTTP bearer

Path parameters

slugstring required

Request body

principalType'user' | 'org' | 'group' required
principalIdstring required

A token sub, an organization id, or a group name, per principalType.

role'viewer' | 'commenter' | 'admin' required

Example request

{
  "principalType": "user",
  "role": "commenter"
}

Response

The created grant.

Changes

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