Delete generation

DELETE /generations/{id}

删除指定题目生成任务。

Path parameters

  • id string Required

    Format should match the following pattern: ^gen-.

Responses

  • 200 application/json

    generation deleted

    Hide response attributes Show response attributes object
    • id string

      Format should match the following pattern: ^gen-.

    • object string

      Value is generation.

    • deleted boolean
  • 404 application/json

    generation not found

DELETE /generations/{id}
curl \
 -X DELETE https://v5.jinshuju.net/exam/api/generations/{id}
Response examples (200)
{
  "id": "gen-6757a41fe88e5d8d2a0bbca7",
  "object": "generation",
  "deleted": true
}
Response examples (404)
{
  "error": {
    "type": "invalid_request_error",
    "message": "No such Generation object: invalid"
  }
}