Diffy icon

Diffy

Interact with Diffy AI Code Review API

Pattern → Create Pattern

AI-generated

Summary

Create a new pattern in Diffy by specifying its content and optionally a name, with support for additional custom parameters to customize the API request.

Inputs

  • Pattern Content (required) — The pattern definition as a multiline string describing the pattern.
  • Pattern Name — An optional name for the pattern.
  • Additional Parameters — Optional additional key-value parameters (custom parameters) to include in the API request.

Output shape

a single JSON object representing the created pattern's details as returned by the Diffy API

The response includes the pattern's assigned ID, name, content, and other metadata as provided by the API. Errors will be handled per node error settings.

Discussion