{
  "openapi": "3.1.0",
  "info": {
    "title": "webhooks",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{orangelogicURL}/webapi/extensibility/webhook/subscription/",
      "variables": {
        "orangelogicURL": {
          "default": "orangelogicURL"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/rotatesecret_22P_v1": {
      "post": {
        "summary": "Generate a secret key for a webhook signature",
        "description": "Generate or update the secret key for a webhook signature",
        "operationId": "add-or-update-a-webhook-signature",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "newSecret": {
                    "type": "string",
                    "description": "An alphanumeric string to be the <code>newSecret</code>. If you leave this parameter empty, Orange Logic generates a random secret and adds it to the response body.",
                    "default": "\"\""
                  },
                  "subscriptionID": {
                    "type": "string",
                    "description": "The subscriptionID of the webhook you are creating a secret for."
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "newSecret": "",
                    "subscriptionId": "Mango1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n \"newSecret\": \"GNSlz1PkDXih\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "newSecret": {
                      "type": "string",
                      "example": "GNSlz1PkDXih"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
