GrantPermissionBody

Request body for a Permission operation.

Definition

TypeScript
interface GrantPermissionBody {
  entityId: string;
  tier: "viewer" | "editor" | "admin";
  subjectId?: string | null | undefined;
}

Fields

FieldTypeNotes
entityIdstringrequired — Prefixed ID of the target entity.
tier"viewer" | "editor" | "admin"required
subjectIdstring | null | undefinedoptional — Subject. Omit (or pass null) for a public grant; otherwise a prefixed user/team/organization ID.