Settings
Job Structure
Job Structure, Positions, Job Types, and Job Categories APIs
Base URL: http://192.168.100.250/
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /job-structure | List all positions, job types, job categories |
| POST | /job-structure/positions | Create position |
| PUT | /job-structure/positions/{id} | Update position |
| DELETE | /job-structure/positions/{id} | Delete position |
| POST | /job-structure/job-types | Create job type |
| PUT | /job-structure/job-types/{id} | Update job type |
| DELETE | /job-structure/job-types/{id} | Delete job type |
| POST | /job-structure/job-categories | Create job category |
| PUT | /job-structure/job-categories/{id} | Update job category |
| DELETE | /job-structure/job-categories/{id} | Delete job category |
All three entities share: name, code (unique), description (optional), is_active (boolean). Position additionally has rank (integer).
List All
GET /job-structure
Accept: application/jsonPositions
Create
POST /job-structure/positions
Content-Type: application/jsonRequest Body:
{
"name": "Professor",
"code": "PROF",
"description": "Senior faculty",
"rank": 1,
"is_active": true
}Update
PUT /job-structure/positions/{id}
Content-Type: application/jsonRequest Body: Same as Create.
Delete
DELETE /job-structure/positions/{id}Job Types
Create
POST /job-structure/job-types
Content-Type: application/jsonRequest Body:
{
"name": "Full-Time",
"code": "FT",
"description": "Permanent staff",
"is_active": true
}Update
PUT /job-structure/job-types/{id}Request Body: Same as Create.
Delete
DELETE /job-structure/job-types/{id}Job Categories
Create
POST /job-structure/job-categories
Content-Type: application/jsonRequest Body:
{
"name": "Teaching",
"code": "TCH",
"description": "Academic staff",
"is_active": true
}Update
PUT /job-structure/job-categories/{id}Request Body: Same as Create.
Delete
DELETE /job-structure/job-categories/{id}