Nutri Snap

Nutri Snap · GPT-Aktionen

GPTs User Feedback API

  • POST /gpts/76993d687a204407985d514c39ba59d1/feedbackCreate User Feedback
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "GPTs User Feedback API",
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "https://gpts.report/api"
    }
  ],
  "paths": {
    "/gpts/76993d687a204407985d514c39ba59d1/feedback": {
      "post": {
        "summary": "Create User Feedback",
        "operationId": "create_user_feedback",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Feedback"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Feedback": {
        "properties": {
          "content": {
            "type": "string",
            "title": "User Feedback"
          },
          "chat_history": {
            "type": "string",
            "title": "Chat History"
          }
        },
        "type": "object",
        "required": [
          "content",
          "chat_history"
        ],
        "title": "Feedback"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    }
  }
}