Snyk · Capability

Snyk API — SastSettings

Snyk API — SastSettings. 2 operations. Lead operation: Retrieves the SAST settings for an org. Self-contained Naftiko capability covering one Snyk business surface.

Run with Naftiko SnykSastSettings

What You Can Do

GET
Getsastsettings — Retrieves the SAST settings for an org
/v1/orgs/{org-id}/settings/sast
PATCH
Updateorgsastsettings — Enable/Disable the Snyk Code settings for an org
/v1/orgs/{org-id}/settings/sast

MCP Tools

retrieves-sast-settings-org

Retrieves the SAST settings for an org

read-only idempotent
enable-disable-snyk-code-settings

Enable/Disable the Snyk Code settings for an org

idempotent

Capability Spec

rest-sastsettings.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Snyk API — SastSettings
  description: 'Snyk API — SastSettings. 2 operations. Lead operation: Retrieves the SAST settings for an org. Self-contained
    Naftiko capability covering one Snyk business surface.'
  tags:
  - Snyk
  - SastSettings
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SNYK_API_KEY: SNYK_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-sastsettings
    baseUri: https://api.snyk.io/rest
    description: Snyk API — SastSettings business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org_id-settings-sast
      path: /orgs/{org_id}/settings/sast
      operations:
      - name: getsastsettings
        method: GET
        description: Retrieves the SAST settings for an org
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          description: The id of the org for which we want to retrieve the SAST settings
          required: true
      - name: updateorgsastsettings
        method: PATCH
        description: Enable/Disable the Snyk Code settings for an org
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          description: The id of the org for which we want to update the Snyk Code setting
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.SNYK_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-sastsettings-rest
    port: 8080
    description: REST adapter for Snyk API — SastSettings. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org-id}/settings/sast
      name: orgs-org-id-settings-sast
      description: REST surface for orgs-org_id-settings-sast.
      operations:
      - method: GET
        name: getsastsettings
        description: Retrieves the SAST settings for an org
        call: rest-sastsettings.getsastsettings
        with:
          org_id: rest.org_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateorgsastsettings
        description: Enable/Disable the Snyk Code settings for an org
        call: rest-sastsettings.updateorgsastsettings
        with:
          org_id: rest.org_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-sastsettings-mcp
    port: 9090
    transport: http
    description: MCP adapter for Snyk API — SastSettings. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: retrieves-sast-settings-org
      description: Retrieves the SAST settings for an org
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-sastsettings.getsastsettings
      with:
        org_id: tools.org_id
      outputParameters:
      - type: object
        mapping: $.
    - name: enable-disable-snyk-code-settings
      description: Enable/Disable the Snyk Code settings for an org
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rest-sastsettings.updateorgsastsettings
      with:
        org_id: tools.org_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.