Skip to Content
API ReferenceEmployees

Add Employee Table Row

POST
/api/v1/employees/{employee_id}/field-tables/{table_id}/rows

Returns the created row. A url cell takes an optional label: {"value_text": "https://tracker.example.com/PROC-2001", "value_label": "PROC-2001"}

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

employee_id*Employee Id
table_id*Table Id

Request Body

application/json
  1. body
date_effective_from?|null
cells*

Response Body

Successful Response

application/json
  1. response
id*Id
table_id*Table Id
date_effective_from*string|null
employee_id*Employee Id
cells*array<>
is_current*Is Current
success?Success
Defaulttrue
Example Request
curl -X POST 'https://api.skailer.com/api/v1/employees/0/field-tables/0/rows' \  -H 'Content-Type: application/json' \  -d '{  "cells": {    "property1": {},    "property2": {}  }}'
Example Response
{  "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,  "success": true}