{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-update-ops-item-request-schema.json",
  "title": "UpdateOpsItemRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-ops-item-api-openapi.yml#/components/schemas/UpdateOpsItemRequest",
  "type": "object",
  "properties": {
    "Description": {
      "type": "string",
      "description": "User-defined text that contains information about the OpsItem, in Markdown format."
    },
    "OperationalData": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/OpsItemDataValue"
      },
      "description": "Add new keys or edit existing key-value pairs of the OperationalData map in the OpsItem object. Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB. Operational data keys can't begin with the following: amazon, aws, amzn, ssm, /amazon, /aws, /amzn, /ssm. You can choose to make the data searchable by other users i"
    },
    "OperationalDataToDelete": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Keys that you want to remove from the OperationalData map."
    },
    "Notifications": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpsItemNotification"
      },
      "description": "The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed."
    },
    "Priority": {
      "type": "integer",
      "description": "The importance of this OpsItem in relation to other OpsItems in the system."
    },
    "RelatedOpsItems": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RelatedOpsItem"
      },
      "description": "One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource."
    },
    "Status": {
      "type": "string",
      "enum": [
        "Open",
        "InProgress",
        "Resolved",
        "Pending",
        "TimedOut",
        "Cancelling",
        "Cancelled",
        "Failed",
        "CompletedWithSuccess",
        "CompletedWithFailure",
        "Scheduled",
        "RunbookInProgress",
        "PendingChangeCalendarOverride",
        "ChangeCalendarOverrideApproved",
        "ChangeCalendarOverrideRejected",
        "PendingApproval",
        "Approved",
        "Revoked",
        "Rejected",
        "Closed"
      ],
      "description": "The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide."
    },
    "OpsItemId": {
      "type": "string",
      "description": "The ID of the OpsItem."
    },
    "Title": {
      "type": "string",
      "description": "A short heading that describes the nature of the OpsItem and the impacted resource."
    },
    "Category": {
      "type": "string",
      "description": "Specify a new category for an OpsItem."
    },
    "Severity": {
      "type": "string",
      "description": "Specify a new severity for an OpsItem."
    },
    "ActualStartTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest."
    },
    "ActualEndTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest."
    },
    "PlannedStartTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type /aws/changerequest."
    },
    "PlannedEndTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type /aws/changerequest."
    },
    "OpsItemArn": {
      "type": "string",
      "description": "The OpsItem Amazon Resource Name (ARN)."
    }
  },
  "required": [
    "OpsItemId"
  ],
  "$defs": {
    "OpsItemDataValue": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string",
          "description": "The value of the OperationalData key."
        },
        "Type": {
          "type": "string",
          "enum": [
            "SearchableString",
            "String"
          ],
          "description": "The type of key-value pair. Valid types include SearchableString and String."
        }
      }
    },
    "OpsItemNotification": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where notifications are sent when this OpsItem is edited or changed."
        }
      }
    },
    "RelatedOpsItem": {
      "type": "object",
      "properties": {
        "OpsItemId": {
          "type": "string",
          "description": "The ID of an OpsItem related to the current OpsItem."
        }
      },
      "required": [
        "OpsItemId"
      ]
    }
  }
}