Create a submission

POST /submissions
application/json

Body Required

Responses

  • 201 application/json

    Submission created successfully

POST /submissions
curl \
 -X POST https://api.wei.co.mz/submissions \
 -H "Content-Type: application/json" \
 -d '{"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
{
  "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
{
  "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
}