Skip to main content
POST
/
companies
/
{company_id}
/
levels
{
  "name": "Senior Engineer",
  "hierarchy_level": 3,
  "min_salary": 80000,
  "max_salary": 120000,
  "description": "Senior level individual contributor"
}
{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "company_id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Senior Engineer",
    "hierarchy_level": 3,
    "min_salary": 80000,
    "max_salary": 120000,
    "description": "Senior level individual contributor",
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T10:30:00Z"
  }
}

Authorization

Requires authentication with a Bearer token. Only users with the following roles can create levels:
  • Super Admin
  • HR Manager

Path Parameters

company_id
string
required
The unique identifier of the company

Request Body

name
string
required
Name of the level (2-255 characters)
hierarchy_level
integer
required
Hierarchy level number (minimum 1). Used for ordering levels within the organization.
min_salary
number
Minimum salary for this level (must be non-negative)
max_salary
number
Maximum salary for this level (must be non-negative)
description
string
Description of the level

Response

success
boolean
Indicates if the request was successful
data
object
The created level object
{
  "name": "Senior Engineer",
  "hierarchy_level": 3,
  "min_salary": 80000,
  "max_salary": 120000,
  "description": "Senior level individual contributor"
}
{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "company_id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Senior Engineer",
    "hierarchy_level": 3,
    "min_salary": 80000,
    "max_salary": 120000,
    "description": "Senior level individual contributor",
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T10:30:00Z"
  }
}

Error Responses

{
  "success": false,
  "message": "invalid request body"
}
{
  "success": false,
  "message": "unauthorized"
}
{
  "success": false,
  "message": "internal server error"
}

Build docs developers (and LLMs) love