POST
/api/v1/institute/new
curl \
--request POST 'http://localhost:3500/api/v1/institute/new' \
--header "Content-Type: application/json" \
--data '{"name":"University of Nairobi","code":"UoN","type":"University","registration_number":"CUE-REG-12345","accrediting_body":"Commission for University Education","ownership":"Public","date_established":"1970-07-01","motto":"In pursuit of excellence","website_url":"https://www.uonbi.ac.ke"}'
Request examples
{
"name": "University of Nairobi",
"code": "UoN",
"type": "University",
"registration_number": "CUE-REG-12345",
"accrediting_body": "Commission for University Education",
"ownership": "Public",
"date_established": "1970-07-01",
"motto": "In pursuit of excellence",
"website_url": "https://www.uonbi.ac.ke"
}
Response examples (200)
{
"message": "Institutes created succesfully",
"institutes": [
{
"id": "string",
"name": "string",
"code": "string"
}
]
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}