{
  "openapi": "3.0.0",
  "info": {
    "title": "Task-Verwaltung",
    "version": "",
    "termsOfService": "https://www.makeupar.com/perfectbeauty/youcam/terms-of-service-api",
    "contact": {
      "email": "YouCamOnlineEditor_API@perfectcorp.com"
    },
    "license": {
      "name": "Privacy policy",
      "url": "https://www.makeupar.com/perfectbeauty/youcam/privacy-policy-api"
    }
  },
  "servers": [
    {
      "url": "https://yce-api-01.makeupar.com"
    }
  ],
  "paths": {
    "/s2s/v2.0/task/delete": {
      "post": {
        "summary": "Task und zugehörige Dateien löschen.",
        "description": "Einen abgeschlossenen Task identifiziert über task_id löschen, einschließlich aller zugehörigen Eingabedateien und generierten Ausgaben. Geben Sie die `task_id` aus dem Run-Endpunkt des Tasks an.",
        "security": [
          {
            "BearerAuthenticationV2": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "task_id"
                ],
                "properties": {
                  "task_id": {
                    "type": "string",
                    "description": "Die task_id aus dem Run-Endpunkt des Tasks.",
                    "example": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Der Task und seine Dateien wurden gelöscht",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "integer",
                      "description": "Antwortstatus",
                      "example": 200
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Löschen des Tasks fehlgeschlagen",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/responses/DeleteTaskError"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidApiKey"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "DeleteTaskError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "description": "Antwortstatus",
            "example": 400
          },
          "error": {
            "type": "string",
            "description": "Fehlermeldung",
            "example": "Operation not supported"
          },
          "error_code": {
            "type": "string",
            "enum": [
              "OperationNotSupport",
              "OperationInvalid",
              "InvalidTaskId",
              "InvalidParameters"
            ],
            "description": "Fehlercodes:\n  * OperationNotSupport - Die übergebene task_id wird nicht akzeptiert; verwenden Sie die task_id aus dem Run-Endpunkt\n  * OperationInvalid - Der Task ist noch nicht fertig und kann nicht gelöscht werden\n  * InvalidTaskId - Die task_id ist fehlerhaft oder es wurde kein passender Task gefunden\n  * InvalidParameters - task_id fehlt\n"
          }
        }
      },
      "InvalidApiKey": {
        "description": "Ungültiger oder fehlender API-Schlüssel",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "integer",
                  "example": 401,
                  "description": "Antwortstatus"
                },
                "error": {
                  "type": "string",
                  "example": "Invalid API key"
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "BearerAuthenticationV2": {
        "type": "http",
        "scheme": "bearer",
        "description": "Nutzt die Standard-'Bearer authentication'. Setzen Sie Ihren 'API Key' in den Header: `Authorization:Bearer YOUR_API_KEY`. Achten Sie auf das Leerzeichen zwischen 'Bearer' und 'YOUR_API_KEY'."
      }
    }
  }
}