SnykSlackProjectNotificationSettings

Model for Snyk Slack Project Notification Settings.

  1. Overview

Overview

This model represents project-specific Slack notification settings that override the default settings for an organization. Uses the Snyk v2 REST API endpoint: /orgs/{org_id}/slack_app/{bot_id}/projects/{project_id}

import clearskies
from clearskies_snyk.models import SnykSlackProjectNotificationSettings


def my_handler(snyk_slack_project_notification_settings: SnykSlackProjectNotificationSettings):
    # Get project-specific Slack notification settings
    settings = snyk_slack_project_notification_settings.where("org_id=org-123").where(
        "bot_id=bot-456"
    )
    for setting in settings:
        print(f"Project: {setting.target_project_name}, Active: {setting.is_active}")