SnykOrgInvite
Model for Snyk Organization Invitations.
Overview
This model represents pending user invitations to a Snyk organization. Invitations can be created, listed, and cancelled.
Uses the Snyk v2 REST API endpoint: /orgs/{org_id}/invites
import clearskies
from clearskies_snyk.models import SnykOrgInvite
def my_handler(snyk_org_invite: SnykOrgInvite):
# Fetch all invites for an organization
invites = snyk_org_invite.where("org_id=org-id-123")
for invite in invites:
print(f"Invite: {invite.email} ({invite.role})")
# Access the parent organization
print(f"Org: {invite.org.name}")