{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-update-pipeline-request-schema.json",
  "title": "UpdatePipelineRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-pipelines-api-openapi.yml#/components/schemas/UpdatePipelineRequest",
  "type": "object",
  "properties": {
    "workspaceName": {
      "type": "string",
      "description": "The name of the workspace."
    },
    "pipelineName": {
      "type": "string",
      "description": "The name of the pipeline to update."
    },
    "description": {
      "type": "string",
      "description": "A new description for the pipeline."
    },
    "environmentVariables": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Updated environment variables shared across all compute nodes."
    },
    "computations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ComputeNode"
      },
      "description": "Updated list of compute nodes forming the pipeline DAG."
    }
  },
  "required": [
    "workspaceName",
    "pipelineName"
  ],
  "$defs": {
    "ComputeNode": {
      "type": "object",
      "properties": {
        "computeNodeName": {
          "type": "string",
          "description": "The unique name for this compute node within the pipeline."
        },
        "taskName": {
          "type": "string",
          "description": "The name of the task to execute for this compute node."
        },
        "environmentVariables": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Environment variables specific to this compute node. These override pipeline-level environment variables with the same key."
        },
        "dependsOn": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of compute node names that must complete successfully before this node can start."
        }
      },
      "required": [
        "computeNodeName",
        "taskName"
      ]
    }
  }
}