Read metadata for a specific built-in employee table
Changed onReturns the schema of a single built-in (out-of-the-box) employee table that has a data endpoint. The response includes the table ID, its category, whether it is effective-dated, and all of its columns, including the custom columns added by the company.
To get the table IDs, use /company/people/employee-tables/metadata, which lists all the built-in employee tables.
The table id is the resource name used in the URL to access the table data, both in the per-employee form and in the bulk form. For example, work is used in /people/{id}/work and in /bulk/people/work, and equities is used in /people/{id}/equities and in /bulk/people/equities.
Custom tables are not included. For those, see /people/custom-tables/metadata/{custom_table_id}.
Request
- Base URLhttps://api.hibob.com/v1
- URLhttps://api.hibob.com/v1/company/people/employee-tables/metadata/{table_id}
- Auth
- HTTP basic
- or HTTP bearer
Path parameters
The ID of the out-of-the-box employee table. Use /company/people/employee-tables/metadata to fetch all table IDs.
Response
Successful response
Example response
{
"id": "salaries",
"name": "Salary",
"description": null,
"categoryId": "payroll",
"categoryDisplayName": "Payroll",
"historical": true,
"columns": [
{
"id": "effectiveDate",
"name": "Effective date",
"description": null,
"mandatory": true,
"type": "date",
"typeData": {}
},
{
"id": "base",
"name": "Base salary",
"description": null,
"mandatory": true,
"type": "currency",
"typeData": {}
},
{
"id": "payPeriod",
"name": "Salary pay period",
"description": null,
"mandatory": true,
"type": "list",
"typeData": {
"listId": "payPeriod"
}
},
{
"id": "payFrequency",
"name": "Salary pay frequency",
"description": null,
"mandatory": true,
"type": "list",
"typeData": {
"listId": "payFrequency"
}
},
{
"id": "reason",
"name": "Reason",
"description": null,
"mandatory": false,
"type": "text",
"typeData": {}
},
{
"id": "changedBy",
"name": "Changed by",
"description": null,
"mandatory": false,
"type": "text",
"typeData": {}
},
{
"id": "endEffectiveDate",
"name": "End effective date",
"description": null,
"mandatory": false,
"type": "date",
"typeData": {}
},
{
"id": "column_1793300200363",
"name": "Cost center code",
"description": "Internal cost center code for the salary entry",
"mandatory": false,
"type": "text",
"typeData": {}
}
]
}Changes
- info
endpoint added
- info