Update a submission

PUT /submissions/{id}
application/json

Body Required

Responses

  • 200 application/json

    Submission updated successfully

PUT /submissions/{id}
curl \
 -X PUT localhost:8080/submissions/{id} \
 -H "Content-Type: application/json" \
 -d '{"id":"string","answers":[{"option":"string","question":"string"}],"meta":{"id":"string","label":"string","type":"string"},"score":42.0,"user":"string","createdAt":"2023-05-04T09:42:00+00:00","updatedAt":"2023-05-04T09:42:00+00:00","time":42}'
Request example
{
  "id": "string",
  "answers": [
    {
      "option": "string",
      "question": "string"
    }
  ],
  "meta": {
    "id": "string",
    "label": "string",
    "type": "string"
  },
  "score": 42.0,
  "user": "string",
  "createdAt": "2023-05-04T09:42:00+00:00",
  "updatedAt": "2023-05-04T09:42:00+00:00",
  "time": 42
}
Request examples
{
  "id": "string",
  "answers": [
    {
      "option": "string",
      "question": "string"
    }
  ],
  "meta": {
    "id": "string",
    "label": "string",
    "type": "string"
  },
  "score": 42.0,
  "user": "string",
  "createdAt": "2024-05-04T09:42:00+00:00",
  "updatedAt": "2024-05-04T09:42:00+00:00",
  "time": 42
}