Skip to content

Branches

Manage branches within your university system via the uniR API.

An Academic Branch refers to a specific subdivision or specialization within an academic program that focuses on a particular area of study or discipline.

Branches allow students to tailor their education by concentrating on a specific field, providing depth and expertise beyond the general curriculum of the main program.

Typically, a branch:

  • Is linked to a parent academic program.
  • Has its own set of required and elective courses.
  • Represents a distinct pathway or focus area (e.g., Software Engineering branch within Computer Science program).

Helps organize departmental resources and faculty expertise.

Base Path: api/academics/branches


Branches are not listed independently. Instead, use the Academic Programs endpoints to retrieve branches linked to a specific program.


GET /api/academics/branches/{id}

Query Parameters

NameTypeDescription
idunsigned intUnique identifier of the branch

Example Request

GET Request
curl -H x-api-key: Bearer YOUR_API_KEY \
https://api.unir.com/v1/api/academics/branches/123

Responses

{
"id": 0,
"name": "string",
"description": "string",
"years": [
{
"id": 0,
"code": "string",
"year": 0
}
]
}

POST /api/academics/branches

Create a new academic branch under a program.

Request Body
{
"programId": 0,
"name": "string",
"years": 0,
"codePrefix": "string",
"codeIsNumeric": true,
"description": "string"
}

Example Request

POST Request
curl -X POST \
-H "x-api-key: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"programId": 0, "name": "string", "years": 0, "codePrefix": "string", "codeIsNumeric": true, "description": "string"}' \
https://api.unir.com/v1/api/academics/branches

Responses

BranchBriefDto
{
"id": 0,
"name": "string",
"description": "string"
}