POST
/api/public/v1/job-titlesCreate a job title
Create a new job title inside a department.
Request Body
| Property | Type | Description |
|---|---|---|
departmentId | string | Owning department. |
name | string | Title name (unique per department). |
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/job-titles" \
-H "X-Organization-Id: your_org_id" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"departmentId": "dept_1",
"name": "Software Engineer"
}'200Example response
json
{
"message": "Job title created successfully!",
"content": {
"jobTitle": {
"id": "jt_1"
}
}
}