PATCH /api/v1/units/{id}

Path parameters

  • id string Required
application/json

Body Required

  • title string
  • description string
  • outline string
  • totalMarks number
  • examMarks number
  • otherMarks number
  • hasLabs boolean

Responses

  • 200
  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
PATCH /api/v1/units/{id}
curl \
 --request PATCH 'https://api.echoplain.social/api/v1/units/{id}' \
 --header "Content-Type: application/json" \
 --data '{"title":"string","description":"string","outline":"string","totalMarks":42.0,"examMarks":42.0,"otherMarks":42.0,"hasLabs":true}'
Request examples
{
  "title": "string",
  "description": "string",
  "outline": "string",
  "totalMarks": 42.0,
  "examMarks": 42.0,
  "otherMarks": 42.0,
  "hasLabs": true
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}