Skip to Content
API ReferenceCustom Fields

Search table rows

POST
/api/v1/custom-fields/tables/{table_id}/rows/search

A historical table returns only the current row of each employee. Pass with_history=true to get every row. For employees whose table history the token is not allowed to view, only the current row is returned.

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

table_id*Table Id

Request Body

application/json
  1. body
page_number?Page Number
Range0 < value
Default1
page_size?Page Size
Range1 <= value <= 500
Default20
text?string|null
employee_ids?array<integer>|null
job_profile_ids?array<integer>|null
job_role_ids?array<integer>|null
department_ids?array<integer>|null
division_ids?array<integer>|null
location_ids?array<integer>|null
employee_lifecycle_statuses?array<>|null
date_effective_from?|null
date_effective_to?|null
field_filters?array<>|null
with_history?With History
Defaultfalse
sorting?

Response Body

Successful Response

application/json
  1. response
items*array<>
metadata*
Example Request
curl -X POST 'https://api.skailer.com/api/v1/custom-fields/tables/0/rows/search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "items": [    {      "id": 0,      "table_id": 0,      "date_effective_from": "string",      "employee_id": 0,      "cells": [        {          "field_id": 0,          "value": {            "value_text": "string",            "value_float": 0,            "value_int": 0,            "value_bool": true,            "datetime_value": "string",            "date_value": "string",            "value_int_array": [              0            ],            "value_text_array": [              "string"            ],            "value_label": "string",            "value_file": {              "name": "string",              "size": 0,              "mime_type": "string",              "url": "string"            },            "value_employee_ids": [              0            ],            "value_references": [              {                "id": 0,                "title": "string",                "is_archived": true              }            ]          }        }      ],      "is_current": true    }  ],  "metadata": {    "page_number": 1,    "total_pages": 0,    "items": 0,    "items_per_page": 0,    "total_items": 0  }}