New Relic · Arazzo Workflow

New Relic Update Policy And Condition

Version 1.0.0

Resolve a policy by name, update it, then update one of its conditions.

1 workflow 1 source API 1 provider
View Spec View on GitHub AnalysisAnalyticsAPMDevOpsInfrastructureMonitoringObservabilityPerformancePlatformArazzoWorkflows

Provider

new-relic

Workflows

update-policy-and-condition
Resolve a policy, update it, then update one of its conditions.
Filters policies by name, updates the matched policy, reads its conditions, and updates the first condition with new settings.
4 steps inputs: conditionName, incidentPreference, metric, policyName outputs: policyId, updatedConditionId
1
findPolicy
Resolve the alert policy id by exact name.
2
updatePolicy
Update the resolved policy's name and incident preference.
3
listConditions
List the policy's conditions and capture the first condition id to tune.
4
updateCondition
Update the selected condition with a new name and metric so the policy evaluates the tuned signal.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: New Relic Update Policy And Condition
  summary: Resolve a policy by name, update it, then update one of its conditions.
  description: >-
    A maintenance pattern for tuning alerting. The workflow resolves a policy by
    name, updates the policy's incident preference, lists the policy's conditions
    to select one, and updates that condition's threshold settings. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: alertsApi
  url: ../openapi/new-relic-alerts-api-openapi.yml
  type: openapi
workflows:
- workflowId: update-policy-and-condition
  summary: Resolve a policy, update it, then update one of its conditions.
  description: >-
    Filters policies by name, updates the matched policy, reads its conditions,
    and updates the first condition with new settings.
  inputs:
    type: object
    required:
    - policyName
    - incidentPreference
    - conditionName
    - metric
    properties:
      policyName:
        type: string
        description: The exact name of the alert policy to update.
      incidentPreference:
        type: string
        description: The new incident rollup strategy for the policy.
      conditionName:
        type: string
        description: The new name to apply to the selected condition.
      metric:
        type: string
        description: The metric the updated condition should evaluate.
  steps:
  - stepId: findPolicy
    description: Resolve the alert policy id by exact name.
    operationId: getAlertsPolicies
    parameters:
    - name: filter[name]
      in: query
      value: $inputs.policyName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      policyId: $response.body#/policy/id
  - stepId: updatePolicy
    description: >-
      Update the resolved policy's name and incident preference.
    operationId: putAlertsPoliciesPolicyId
    parameters:
    - name: policy_id
      in: path
      value: $steps.findPolicy.outputs.policyId
    requestBody:
      contentType: application/json
      payload:
        policy:
          name: $inputs.policyName
          incident_preference: $inputs.incidentPreference
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      updatedPolicyId: $response.body#/policy/id
  - stepId: listConditions
    description: >-
      List the policy's conditions and capture the first condition id to tune.
    operationId: getAlertsConditions
    parameters:
    - name: policy_id
      in: query
      value: $steps.findPolicy.outputs.policyId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      conditionId: $response.body#/condition/id
  - stepId: updateCondition
    description: >-
      Update the selected condition with a new name and metric so the policy
      evaluates the tuned signal.
    operationId: putAlertsConditionsConditionId
    parameters:
    - name: condition_id
      in: path
      value: $steps.listConditions.outputs.conditionId
    requestBody:
      contentType: application/json
      payload:
        condition:
          name: $inputs.conditionName
          metric: $inputs.metric
          enabled: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      updatedConditionId: $response.body#/condition/id
  outputs:
    policyId: $steps.findPolicy.outputs.policyId
    updatedConditionId: $steps.updateCondition.outputs.updatedConditionId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/new-relic-update-policy-and-condition-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.