Timeline Graph Builder

Timeline Graph Builder · GPT Actions

Timeline Webhook API

API to handle timeline data through a webhook.

  • POST /webhook_timeline.phpReceives and processes project timeline data.
原始 API 定义
{
  "openapi": "3.0.0",
  "info": {
    "title": "Timeline Webhook API",
    "description": "API to handle timeline data through a webhook.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://examenginebot.com/timelinegraph",
      "description": "Main API server"
    }
  ],
  "paths": {
    "/webhook_timeline.php": {
      "post": {
        "operationId": "submitTimeline",
        "summary": "Receives and processes project timeline data.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "timelineData": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "id",
                        "content",
                        "start"
                      ],
                      "properties": {
                        "id": {
                          "type": "integer"
                        },
                        "content": {
                          "type": "string"
                        },
                        "start": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "end": {
                          "type": "string",
                          "format": "date-time",
                          "nullable": true
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "point"
                          ],
                          "nullable": true
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Timeline data successfully received and processed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "integer"
                    },
                    "messages": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}