{
  "components": {
    "examples": {
      "ListCommonServiceItemsResponseDestinations": {
        "value": {
          "CommonServiceItems": [
            {
              "CreatedAt": "2025-12-18T12:00:00+09:00",
              "Description": "メール通知先の説明",
              "ID": "123700010001",
              "Icon": {
                "ID": "123700100001"
              },
              "Index": 0,
              "ModifiedAt": "2025-12-18T12:00:00+09:00",
              "Name": "mail destination",
              "Provider": {
                "Class": "saknoticedestination"
              },
              "Settings": {
                "Type": "email",
                "Value": "user@example.com"
              },
              "Tags": []
            },
            {
              "CreatedAt": "2025-12-18T12:00:00+09:00",
              "Description": "Webhook通知先の説明",
              "ID": "123700010002",
              "Icon": {
                "ID": "123700100001"
              },
              "Index": 1,
              "ModifiedAt": "2025-12-18T12:00:00+09:00",
              "Name": "webhook destination",
              "Provider": {
                "Class": "saknoticedestination"
              },
              "Settings": {
                "Type": "webhook",
                "Value": "https://example.com/notify"
              },
              "Tags": []
            }
          ],
          "Count": 2,
          "From": 0,
          "Total": 2
        }
      },
      "ListCommonServiceItemsResponseGroups": {
        "value": {
          "CommonServiceItems": [
            {
              "CreatedAt": "2025-12-18T12:00:00+09:00",
              "Description": "通知先グループの説明",
              "ID": "123700020001",
              "Icon": {
                "ID": "123700100001"
              },
              "Index": 0,
              "ModifiedAt": "2025-12-18T12:00:00+09:00",
              "Name": "test group",
              "Provider": {
                "Class": "saknoticegroup"
              },
              "Settings": {
                "Destinations": [
                  "123700010001",
                  "123700010002"
                ]
              },
              "Tags": []
            }
          ],
          "Count": 1,
          "From": 0,
          "Total": 1
        }
      },
      "ListCommonServiceItemsResponseRoutings": {
        "value": {
          "CommonServiceItems": [
            {
              "CreatedAt": "2025-12-18T12:00:00+09:00",
              "Description": "通知ルーティングの説明",
              "ID": "123700030001",
              "Icon": {
                "ID": "123700100001"
              },
              "Index": 0,
              "ModifiedAt": "2025-12-18T12:00:00+09:00",
              "Name": "test routing",
              "Provider": {
                "Class": "saknoticerouting"
              },
              "Settings": {
                "MatchLabels": [
                  {
                    "Name": "environment",
                    "Value": "development"
                  }
                ],
                "PriorityRank": 1,
                "SourceID": "1",
                "TargetGroupID": "123700020001"
              },
              "Tags": []
            }
          ],
          "Count": 1,
          "From": 0,
          "Total": 1
        }
      },
      "ListNotificationHistoriesResponse": {
        "value": {
          "NotificationHistories": [
            {
              "message": {
                "body": "This is a test notification message.",
                "color": "default",
                "color_code": "#7d7d7d",
                "icon_url": "https://example.com/icon.png",
                "image_url": "https://example.com/image.png",
                "title": "Test Notification"
              },
              "received_at": "2025-12-18T12:00:00+09:00",
              "request_id": "12345",
              "source_id": "",
              "statuses": [
                {
                  "created_at": "2025-12-18T12:00:00+09:00",
                  "destination_id": "123700010001",
                  "error_info": "",
                  "group_id": "123700020001",
                  "id": "67890",
                  "notification_request_id": "12345",
                  "status": 2,
                  "updated_at": "2025-12-18T12:05:00+09:00"
                }
              ]
            }
          ]
        }
      },
      "PostCommonServiceItemRequestDestination": {
        "value": {
          "CommonServiceItem": {
            "Description": "メール通知先の説明",
            "Icon": {
              "ID": "123700100001"
            },
            "Name": "mail destination",
            "Provider": {
              "Class": "saknoticedestination"
            },
            "ServiceClass": "cloud/saknoticedestination/2",
            "Settings": {
              "Type": "email",
              "Value": "user@example.com"
            },
            "Tags": []
          }
        }
      },
      "PostCommonServiceItemRequestGroup": {
        "value": {
          "CommonServiceItem": {
            "Description": "通知先グループの説明",
            "Icon": {
              "ID": "123700100001"
            },
            "Name": "test group",
            "Provider": {
              "Class": "saknoticegroup"
            },
            "ServiceClass": "cloud/saknoticegroup/2",
            "Settings": {
              "Destinations": [
                "123700010001"
              ]
            },
            "Tags": []
          }
        }
      },
      "PostCommonServiceItemRequestRouting": {
        "value": {
          "CommonServiceItem": {
            "Description": "通知ルーティングの説明",
            "Icon": {
              "ID": "123700100001"
            },
            "Name": "test routing",
            "Provider": {
              "Class": "saknoticerouting"
            },
            "ServiceClass": "cloud/saknoticerouting/2",
            "Settings": {
              "MatchLabels": [
                {
                  "Name": "environment",
                  "Value": "development"
                }
              ],
              "SourceID": "1",
              "TargetGroupID": "123700020001"
            },
            "Tags": []
          }
        }
      },
      "PutCommonServiceItemRequestDestination": {
        "value": {
          "CommonServiceItem": {
            "Description": "メール通知先の説明",
            "Icon": {
              "ID": "123700100001"
            },
            "Name": "mail destination",
            "Settings": {
              "Type": "email",
              "Value": "user@example.com"
            },
            "Tags": []
          }
        }
      },
      "PutCommonServiceItemRequestGroup": {
        "value": {
          "CommonServiceItem": {
            "Description": "通知先グループの説明",
            "Icon": {
              "ID": "123700100001"
            },
            "Name": "test group",
            "Settings": {
              "Destinations": [
                "123700010001"
              ]
            },
            "Tags": []
          }
        }
      },
      "PutCommonServiceItemRequestRouting": {
        "value": {
          "CommonServiceItem": {
            "Description": "通知ルーティングの説明",
            "Icon": {
              "ID": "123700100001"
            },
            "Name": "test routing",
            "Settings": {
              "MatchLabels": [
                {
                  "Name": "environment",
                  "Value": "development"
                }
              ],
              "SourceID": "1",
              "TargetGroupID": "123700020001"
            },
            "Tags": []
          }
        }
      },
      "ReadCommonServiceItemsResponseDestination": {
        "value": {
          "CommonServiceItem": {
            "CreatedAt": "2025-12-18T12:00:00+09:00",
            "Description": "メール通知先の説明",
            "ID": "123700010001",
            "Icon": {
              "ID": "123700100001"
            },
            "ModifiedAt": "2025-12-18T12:00:00+09:00",
            "Name": "mail destination",
            "Provider": {
              "Class": "saknoticedestination"
            },
            "Settings": {
              "Type": "email",
              "Value": "user@example.com"
            },
            "Tags": []
          }
        }
      },
      "ReadCommonServiceItemsResponseGroup": {
        "value": {
          "CommonServiceItem": {
            "CreatedAt": "2025-12-18T12:00:00+09:00",
            "Description": "通知先グループの説明",
            "ID": "123700020001",
            "Icon": {
              "ID": "123700100001"
            },
            "ModifiedAt": "2025-12-18T12:00:00+09:00",
            "Name": "test group",
            "Provider": {
              "Class": "saknoticegroup"
            },
            "Settings": {
              "Destinations": [
                "123700010001",
                "123700010002"
              ]
            },
            "Tags": []
          }
        }
      },
      "ReadCommonServiceItemsResponseRouting": {
        "value": {
          "CommonServiceItem": {
            "CreatedAt": "2025-12-18T12:00:00+09:00",
            "Description": "通知ルーティングの説明",
            "ID": "123700030001",
            "Icon": {
              "ID": "123700100001"
            },
            "ModifiedAt": "2025-12-18T12:00:00+09:00",
            "Name": "test routing",
            "Provider": {
              "Class": "saknoticerouting"
            },
            "Settings": {
              "MatchLabels": [
                {
                  "Name": "environment",
                  "Value": "development"
                }
              ],
              "PriorityRank": 1,
              "SourceID": "1",
              "TargetGroupID": "123700020001"
            },
            "Tags": []
          }
        }
      },
      "ReadNotificationHistoryResponse": {
        "value": {
          "NotificationHistory": {
            "message": {
              "body": "This is a test notification message.",
              "color": "default",
              "color_code": "#7d7d7d",
              "icon_url": "https://example.com/icon.png",
              "image_url": "https://example.com/image.png",
              "title": "Test Notification"
            },
            "received_at": "2025-12-18T12:00:00+09:00",
            "request_id": "12345",
            "source_id": "",
            "statuses": [
              {
                "created_at": "2025-12-18T12:00:00+09:00",
                "destination_id": "123700010001",
                "error_info": "",
                "group_id": "123700020001",
                "id": "67890",
                "notification_request_id": "12345",
                "status": 2,
                "updated_at": "2025-12-18T12:05:00+09:00"
              }
            ]
          }
        }
      }
    },
    "schemas": {
      "CheckDestinationStatusResponse": {
        "properties": {
          "NotificationStatus": {
            "properties": {
              "IsValid": {
                "type": "boolean"
              },
              "ModifiedAt": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "IsValid",
              "ModifiedAt"
            ],
            "type": "object"
          }
        },
        "required": [
          "NotificationStatus"
        ],
        "type": "object"
      },
      "CommonServiceItem": {
        "properties": {
          "CreatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "Description": {
            "type": "string"
          },
          "ID": {
            "type": "string"
          },
          "Icon": {
            "$ref": "#/components/schemas/CommonServiceItemIcon"
          },
          "Index": {
            "type": "integer"
          },
          "ModifiedAt": {
            "format": "date-time",
            "type": "string"
          },
          "Name": {
            "type": "string"
          },
          "Provider": {
            "properties": {
              "Class": {
                "enum": [
                  "saknoticedestination",
                  "saknoticegroup",
                  "saknoticerouting"
                ],
                "type": "string"
              }
            },
            "required": [
              "Class"
            ],
            "type": "object"
          },
          "Settings": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CommonServiceItemDestinationSettings"
              },
              {
                "$ref": "#/components/schemas/CommonServiceItemGroupSettings"
              },
              {
                "$ref": "#/components/schemas/CommonServiceItemRoutingSettings"
              }
            ]
          },
          "Tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ID",
          "Name",
          "Description",
          "Settings",
          "CreatedAt",
          "ModifiedAt",
          "Provider",
          "Icon",
          "Tags"
        ],
        "type": "object"
      },
      "CommonServiceItemDestinationSettings": {
        "properties": {
          "Disabled": {
            "type": "boolean"
          },
          "Type": {
            "enum": [
              "email",
              "webhook"
            ],
            "type": "string"
          },
          "Value": {
            "type": "string"
          }
        },
        "required": [
          "Type",
          "Value"
        ],
        "type": "object"
      },
      "CommonServiceItemGroupSettings": {
        "properties": {
          "Destinations": {
            "items": {
              "pattern": "^[0-9]{12}$",
              "type": "string"
            },
            "type": "array"
          },
          "Disabled": {
            "type": "boolean"
          }
        },
        "required": [
          "Destinations"
        ],
        "type": "object"
      },
      "CommonServiceItemIcon": {
        "nullable": true,
        "properties": {
          "ID": {
            "type": "string"
          },
          "Name": {
            "type": "string"
          },
          "Scope": {
            "type": "string"
          },
          "URL": {
            "type": "string"
          }
        },
        "required": [
          "ID"
        ],
        "type": "object"
      },
      "CommonServiceItemRoutingSettings": {
        "properties": {
          "MatchLabels": {
            "items": {
              "properties": {
                "Name": {
                  "maxLength": 64,
                  "pattern": "^[a-zA-Z0-9_-]*$",
                  "type": "string"
                },
                "Value": {
                  "maxLength": 64,
                  "pattern": "^[\\x20-\\x7E]*$",
                  "type": "string"
                }
              },
              "required": [
                "Name",
                "Value"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "PriorityRank": {
            "maximum": 100,
            "minimum": 1,
            "readOnly": true,
            "type": "integer"
          },
          "SourceID": {
            "pattern": "^[0-9]{1,12}$",
            "type": "string"
          },
          "TargetGroupID": {
            "pattern": "^[0-9]{1,12}$",
            "type": "string"
          }
        },
        "required": [
          "SourceID",
          "MatchLabels",
          "TargetGroupID",
          "PriorityRank"
        ],
        "type": "object"
      },
      "Error": {
        "properties": {
          "error_code": {
            "type": "string"
          },
          "error_msg": {
            "type": "string"
          },
          "is_fatal": {
            "type": "boolean"
          },
          "serial": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ListCommonServiceItemsResponse": {
        "properties": {
          "CommonServiceItems": {
            "items": {
              "$ref": "#/components/schemas/CommonServiceItem"
            },
            "type": "array"
          },
          "Count": {
            "type": "integer"
          },
          "From": {
            "type": "integer"
          },
          "Total": {
            "type": "integer"
          }
        },
        "required": [
          "CommonServiceItems"
        ],
        "type": "object"
      },
      "ListNotificationHistoriesResponse": {
        "properties": {
          "NotificationHistories": {
            "items": {
              "$ref": "#/components/schemas/NotificationHistory"
            },
            "type": "array"
          }
        },
        "required": [
          "NotificationHistories"
        ],
        "type": "object"
      },
      "ListNotificationSourcesResponse": {
        "properties": {
          "Sources": {
            "items": {
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "Sources"
        ],
        "type": "object"
      },
      "NotificationHistory": {
        "properties": {
          "message": {
            "$ref": "#/components/schemas/NotificationMessage"
          },
          "received_at": {
            "format": "date-time",
            "type": "string"
          },
          "request_id": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          },
          "statuses": {
            "items": {
              "$ref": "#/components/schemas/NotificationStatus"
            },
            "type": "array"
          }
        },
        "required": [
          "request_id",
          "source_id",
          "statuses",
          "received_at",
          "message"
        ],
        "type": "object"
      },
      "NotificationMessage": {
        "properties": {
          "body": {
            "type": "string"
          },
          "color": {
            "type": "string"
          },
          "color_code": {
            "type": "string"
          },
          "icon_url": {
            "type": "string"
          },
          "image_url": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "body",
          "color",
          "color_code",
          "icon_url",
          "image_url",
          "title"
        ],
        "type": "object"
      },
      "NotificationStatus": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "destination_id": {
            "pattern": "^[0-9]{12}$",
            "type": "string"
          },
          "error_info": {
            "type": "string"
          },
          "group_id": {
            "pattern": "^[0-9]{12}$",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "notification_request_id": {
            "type": "string"
          },
          "status": {
            "description": "- 0: 未送信\n- 1: 送信中\n- 2: 送信済\n- 3: スキップ\n- 9: 送信失敗\n",
            "enum": [
              0,
              1,
              2,
              3,
              9
            ],
            "type": "integer"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "error_info",
          "notification_request_id",
          "group_id",
          "destination_id",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "PostCommonServiceItemRequest": {
        "properties": {
          "CommonServiceItem": {
            "properties": {
              "Description": {
                "type": "string"
              },
              "Icon": {
                "$ref": "#/components/schemas/CommonServiceItemIcon"
              },
              "Name": {
                "type": "string"
              },
              "Provider": {
                "properties": {
                  "Class": {
                    "enum": [
                      "saknoticedestination",
                      "saknoticegroup",
                      "saknoticerouting"
                    ],
                    "type": "string"
                  },
                  "Name": {
                    "type": "string"
                  },
                  "ServiceClass": {
                    "type": "string"
                  }
                },
                "required": [
                  "Class"
                ],
                "type": "object"
              },
              "ServiceClass": {
                "enum": [
                  "cloud/saknoticedestination/2",
                  "cloud/saknoticegroup/2",
                  "cloud/saknoticerouting/2"
                ],
                "type": "string"
              },
              "Settings": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CommonServiceItemDestinationSettings"
                  },
                  {
                    "$ref": "#/components/schemas/CommonServiceItemGroupSettings"
                  },
                  {
                    "$ref": "#/components/schemas/CommonServiceItemRoutingSettings"
                  }
                ]
              },
              "Tags": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "Name",
              "Description",
              "Tags",
              "Icon",
              "Provider",
              "Settings",
              "ServiceClass"
            ],
            "type": "object"
          }
        },
        "required": [
          "CommonServiceItem"
        ],
        "type": "object"
      },
      "PutCommonServiceItemRequest": {
        "properties": {
          "CommonServiceItem": {
            "properties": {
              "Description": {
                "type": "string"
              },
              "Icon": {
                "$ref": "#/components/schemas/CommonServiceItemIcon"
              },
              "Name": {
                "type": "string"
              },
              "Settings": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CommonServiceItemDestinationSettings"
                  },
                  {
                    "$ref": "#/components/schemas/CommonServiceItemGroupSettings"
                  },
                  {
                    "$ref": "#/components/schemas/CommonServiceItemRoutingSettings"
                  }
                ]
              },
              "Tags": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "Name",
              "Description",
              "Tags",
              "Icon"
            ],
            "type": "object"
          }
        },
        "required": [
          "CommonServiceItem"
        ],
        "type": "object"
      },
      "ReadNotificationHistoryResponse": {
        "properties": {
          "NotificationHistory": {
            "$ref": "#/components/schemas/NotificationHistory"
          }
        },
        "required": [
          "NotificationHistory"
        ],
        "type": "object"
      },
      "ReorderNotificationRoutingRequest": {
        "properties": {
          "Orders": {
            "items": {
              "properties": {
                "PriorityRank": {
                  "maximum": 100,
                  "minimum": 1,
                  "type": "integer"
                },
                "RoutingID": {
                  "pattern": "^[0-9]{1,12}$",
                  "type": "string"
                }
              },
              "required": [
                "RoutingID",
                "PriorityRank"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "Orders"
        ],
        "type": "object"
      },
      "SendNotificationRequest": {
        "properties": {
          "Message": {
            "maxLength": 2048,
            "type": "string"
          }
        },
        "required": [
          "Message"
        ],
        "type": "object"
      },
      "SendNotificationResponse": {
        "properties": {
          "is_ok": {
            "type": "boolean"
          }
        },
        "required": [
          "is_ok"
        ],
        "type": "object"
      }
    }
  },
  "info": {
    "contact": {
      "name": "simple-notification"
    },
    "description": "---\nCopyright SAKURA internet Inc.\n\n# はじめに\n「シンプル通知」は、メールや Webhook を利用し、任意のタイミングで通知を送信するサービスです。\n\n# 基本的な使い方\n## APIキーの発行\nAPIを利用するためには、認証のための「APIキー」が必要です。事前にキーを発行しておきます。\nAPIキーは「ユーザーID」「パスワード」に相当する「トークン」と呼ばれる認証情報で構成されています。\n|   項目名   | APIキー発行時の項目名        | このドキュメント内での例             |\n|------------|------------------------------|--------------------------------------|\n| ユーザーID | アクセストークン(UUID)       | 01234567-89ab-cdef-0123-456789abcdef |\n| パスワード | アクセストークンシークレット | SAMPLETOKENSAMPLETOKENSAMPLETOKENSAM |\n\u003cdiv class=\"warning\"\u003e\n  \u003cb\u003e操作マニュアル\u003c/b\u003e\u003cbr /\u003e\n  \u003cul\u003e\u003cli\u003e\u003ca href=\"https://manual.sakura.ad.jp/cloud/api/apikey.html\"\u003eAPIキー | さくらのクラウド ドキュメント\u003c/a\u003e\u003c/li\u003e\u003c/ul\u003e\n\u003c/div\u003e\n\n## APIエンドポイント\nhttps://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1",
    "title": "シンプル通知 API",
    "version": "1.0.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/commonserviceitem": {
      "get": {
        "description": "リソースの一覧取得。クエリパラメータにて下記のように`Provider.Class`を指定してフィルタを設定することで通知先、通知先グループまたは通知ルーティングのリソースのみを取得できます。\n- 通知先: `/commonserviceitem?{\"Filter\":{\"Provider.Class\":\"saknoticedestination\"}}`\u003cbr\u003e\n- 通知先グループ: `/commonserviceitem?{\"Filter\":{\"Provider.Class\":\"saknoticegroup\"}}`\u003cbr\u003e\n- 通知ルーティング: `/commonserviceitem?{\"Filter\":{\"Provider.Class\":\"saknoticerouting\"}}`\n",
        "operationId": "listCommonServiceItems",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "通知ルーティング一覧": {
                    "$ref": "#/components/examples/ListCommonServiceItemsResponseRoutings"
                  },
                  "通知先グループ一覧": {
                    "$ref": "#/components/examples/ListCommonServiceItemsResponseGroups"
                  },
                  "通知先一覧": {
                    "$ref": "#/components/examples/ListCommonServiceItemsResponseDestinations"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ListCommonServiceItemsResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unexpected Error"
          }
        },
        "summary": "リソースの一覧取得",
        "tags": [
          "通知先",
          "通知先グループ",
          "通知ルーティング"
        ]
      },
      "post": {
        "description": "リソースの作成。`Provider.Class`の値に応じて必要な`Settings`の内容が異なります。\n",
        "operationId": "createCommonServiceItem",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "通知ルーティング": {
                  "$ref": "#/components/examples/PostCommonServiceItemRequestRouting"
                },
                "通知先": {
                  "$ref": "#/components/examples/PostCommonServiceItemRequestDestination"
                },
                "通知先グループ": {
                  "$ref": "#/components/examples/PostCommonServiceItemRequestGroup"
                }
              },
              "schema": {
                "$ref": "#/components/schemas/PostCommonServiceItemRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "CommonServiceItem": {
                      "$ref": "#/components/schemas/CommonServiceItem"
                    }
                  },
                  "required": [
                    "CommonServiceItem"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unexpected Error"
          }
        },
        "summary": "リソースの作成",
        "tags": [
          "通知先",
          "通知先グループ",
          "通知ルーティング"
        ]
      }
    },
    "/commonserviceitem/simplenotification/history": {
      "get": {
        "description": "通知履歴の一覧取得。\n直近30日間以内の通知送信履歴が最大100件まで取得可能です。\n",
        "operationId": "listNotificationHistories",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "通知履歴一覧": {
                    "$ref": "#/components/examples/ListNotificationHistoriesResponse"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ListNotificationHistoriesResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unexpected Error"
          }
        },
        "summary": "通知履歴の一覧取得",
        "tags": [
          "通知履歴"
        ]
      }
    },
    "/commonserviceitem/simplenotification/history/{request_id}": {
      "get": {
        "description": "指定した`request_id`に対応する通知履歴の取得。\n",
        "operationId": "readNotificationHistory",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "pattern": "^[0-9]+$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "通知履歴": {
                    "$ref": "#/components/examples/ReadNotificationHistoryResponse"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ReadNotificationHistoryResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unexpected Error"
          }
        },
        "summary": "通知履歴の取得",
        "tags": [
          "通知履歴"
        ]
      }
    },
    "/commonserviceitem/simplenotification/routing/reorder": {
      "put": {
        "description": "通知ルーティングの優先順位を並び替えます。\n`PriorityRank`の値は他の通知ルーティングと重複しないように指定する必要があります。\n",
        "operationId": "reorderNotificationRouting",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReorderNotificationRoutingRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "is_ok": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Accepted"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unexpected Error"
          }
        },
        "summary": "通知ルーティングの並び替え",
        "tags": [
          "通知ルーティング"
        ]
      }
    },
    "/commonserviceitem/simplenotification/sources": {
      "get": {
        "description": "通知ルーティングに設定する通知元の情報を取得します。\n",
        "operationId": "listNotificationSources",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListNotificationSourcesResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unexpected Error"
          }
        },
        "summary": "通知元一覧の取得",
        "tags": [
          "通知ルーティング"
        ]
      }
    },
    "/commonserviceitem/{id}": {
      "delete": {
        "description": "リソースの削除。\n",
        "operationId": "deleteCommonServiceItem",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "pattern": "^[0-9]{12}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "CommonServiceItem": {
                      "$ref": "#/components/schemas/CommonServiceItem"
                    }
                  },
                  "required": [
                    "CommonServiceItem"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unexpected Error"
          }
        },
        "summary": "リソースの削除",
        "tags": [
          "通知先",
          "通知先グループ",
          "通知ルーティング"
        ]
      },
      "get": {
        "description": "リソースの取得。取得された`CommonServiceItem`の`Provider.Class`の値に応じて`Settings`の内容は異なります。\n",
        "operationId": "readCommonServiceItem",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "pattern": "^[0-9]{12}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "通知ルーティング": {
                    "$ref": "#/components/examples/ReadCommonServiceItemsResponseRouting"
                  },
                  "通知先": {
                    "$ref": "#/components/examples/ReadCommonServiceItemsResponseDestination"
                  },
                  "通知先グループ": {
                    "$ref": "#/components/examples/ReadCommonServiceItemsResponseGroup"
                  }
                },
                "schema": {
                  "properties": {
                    "CommonServiceItem": {
                      "$ref": "#/components/schemas/CommonServiceItem"
                    }
                  },
                  "required": [
                    "CommonServiceItem"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unexpected Error"
          }
        },
        "summary": "リソースの取得",
        "tags": [
          "通知先",
          "通知先グループ",
          "通知ルーティング"
        ]
      },
      "put": {
        "description": "リソースの更新。更新される`CommonServiceItem`の`Provider.Class`の値に応じて`Settings`の内容は異なります。\n",
        "operationId": "updateCommonServiceItem",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "pattern": "^[0-9]{12}$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "通知ルーティング": {
                  "$ref": "#/components/examples/PutCommonServiceItemRequestRouting"
                },
                "通知先": {
                  "$ref": "#/components/examples/PutCommonServiceItemRequestDestination"
                },
                "通知先グループ": {
                  "$ref": "#/components/examples/PutCommonServiceItemRequestGroup"
                }
              },
              "schema": {
                "$ref": "#/components/schemas/PutCommonServiceItemRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "CommonServiceItem": {
                      "$ref": "#/components/schemas/CommonServiceItem"
                    }
                  },
                  "required": [
                    "CommonServiceItem"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unexpected Error"
          }
        },
        "summary": "リソースの更新",
        "tags": [
          "通知先",
          "通知先グループ",
          "通知ルーティング"
        ]
      }
    },
    "/commonserviceitem/{id}/simplenotification/message": {
      "post": {
        "description": "指定した通知先グループに対してメッセージを送信します。\n",
        "operationId": "sendNotification",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "pattern": "^[0-9]{12}$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendNotificationRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendNotificationResponse"
                }
              }
            },
            "description": "Accepted"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unexpected Error"
          }
        },
        "summary": "メッセージの送信",
        "tags": [
          "通知送信"
        ]
      }
    },
    "/commonserviceitem/{id}/simplenotification/status": {
      "get": {
        "description": "通知先が通知送信可能かどうかのステータス情報を取得します。\n",
        "operationId": "checkNotificationDestinationStatus",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "pattern": "^[0-9]{12}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckDestinationStatusResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unexpected Error"
          }
        },
        "summary": "通知先ステータス情報の取得",
        "tags": [
          "通知先"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "さくらのクラウドAPIエンドポイント",
      "url": "https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1"
    }
  ],
  "tags": [
    {
      "description": "通知送信関連のエンドポイント",
      "name": "通知送信"
    },
    {
      "description": "通知履歴関連のエンドポイント",
      "name": "通知履歴"
    },
    {
      "description": "通知先関連のエンドポイント",
      "name": "通知先"
    },
    {
      "description": "通知先グループ関連のエンドポイント",
      "name": "通知先グループ"
    },
    {
      "description": "通知ルーティング関連のエンドポイント",
      "name": "通知ルーティング"
    }
  ]
}
