Update a question by ID

PUT /questions/{id}

Path parameters

  • id string Required

    ID of the question

application/json

Body Required

Responses

  • Question updated successfully

PUT /questions/{id}
curl \
 -X PUT https://api.wei.co.mz/questions/{id} \
 -H "Content-Type: application/json" \
 -d '{"description":"string","exam":{"label":"string","id":"string","identifier":"string"},"figures":["https://example.com"],"level":"string","number":42,"year":42,"subject":"string","topic":{"id":"string","label":"string"},"options":[{"letter":"string","text":"string","figure_url":"https://example.com"}],"university":{"id":"string","label":"string","short_name":"string"},"solution":{"option":"string","steps":["string"],"video_url":"https://example.com","figures":["https://example.com"]},"tip":"string"}'
Request example
{
  "description": "string",
  "exam": {
    "label": "string",
    "id": "string",
    "identifier": "string"
  },
  "figures": [
    "https://example.com"
  ],
  "level": "string",
  "number": 42,
  "year": 42,
  "subject": "string",
  "topic": {
    "id": "string",
    "label": "string"
  },
  "options": [
    {
      "letter": "string",
      "text": "string",
      "figure_url": "https://example.com"
    }
  ],
  "university": {
    "id": "string",
    "label": "string",
    "short_name": "string"
  },
  "solution": {
    "option": "string",
    "steps": [
      "string"
    ],
    "video_url": "https://example.com",
    "figures": [
      "https://example.com"
    ]
  },
  "tip": "string"
}
Request examples
{
  "description": "string",
  "exam": {
    "label": "string",
    "id": "string",
    "identifier": "string"
  },
  "figures": [
    "https://example.com"
  ],
  "level": "string",
  "number": 42,
  "year": 42,
  "subject": "string",
  "topic": {
    "id": "string",
    "label": "string"
  },
  "options": [
    {
      "letter": "string",
      "text": "string",
      "figure_url": "https://example.com"
    }
  ],
  "university": {
    "id": "string",
    "label": "string",
    "short_name": "string"
  },
  "solution": {
    "option": "string",
    "steps": [
      "string"
    ],
    "video_url": "https://example.com",
    "figures": [
      "https://example.com"
    ]
  },
  "tip": "string"
}