API ReferenceEmployees
Create Team
POST
Requires manage_teams = edit.
HttpBearerAuthheader
AuthorizationBearer <JWT>application/json- body
title*Titledescription?string|nullemoji*Emojilinks?array<>members?array<>Successful Response
application/json- response
id*Idtitle*Titledescription*string|nullemoji*Emojibackground_url*string|nulllinks*array<>members*array<>curl -X POST 'https://api.skailer.com/api/v1/teams' \ -H 'Content-Type: application/json' \ -d '{ "title": "string", "emoji": "string"}'Example Response
{ "id": 0, "title": "string", "description": "string", "emoji": "string", "background_url": "string", "links": [ { "title": "string", "url": "string" } ], "members": [ { "id": 0, "employee": { "id": 0, "first_name": "string", "last_name": "string", "middle_name": "string", "email": "string", "email_personal": "string", "date_hired_on": "string", "phone_personal": "string", "phone": "string", "birth_date": { "day": 0, "month": 0, "year": 0 }, "gender": "string", "personnel_number": "string", "address_1": "string", "address_2": "string", "city": "string", "state": "string", "zip": "string", "country": { "id": 0, "title": "string" }, "avatar_url": "string", "avatar_uuid": "string", "background_url": "string", "employee_position": { "id": 0, "custom_fields": [], "department": { "id": 0, "title": "string", "is_archived": true, "emoji": "string", "image_url": "string" }, "division": { "id": 0, "title": "string", "is_archived": true }, "job_profile": { "id": 0, "title": "string", "system_title": "string", "display_title": "string", "description": "string", "role_id": 0, "level_id": 0, "is_archived": true }, "date_effective_from": "string", "department_manager": { "id": 0, "first_name": "string", "last_name": "string", "email": "string", "is_archived": false }, "manager": { "id": 0, "first_name": "string", "last_name": "string", "email": "string", "is_archived": false }, "legal_entity": null, "location": { "id": 0, "title": "string", "address_1": "string", "address_2": "string", "city": "string", "state": "string", "zip": "string", "country": { "id": 0, "title": "string" }, "timezone": "string", "employees_count": 0, "is_archived": true }, "comment": "string", "changed_by": { "id": 0, "first_name": "string", "last_name": "string", "email": "string", "is_archived": false }, "change_reason": { "id": 0, "title": "string", "is_archived": true, "is_voluntary": true } }, "employee_employment": { "id": 0, "custom_fields": [], "date_effective_from": "string", "date_effective_to": "string", "employment_type": { "id": 0, "title": "string", "is_archived": true, "employees_count": 0 }, "employment_contract": { "id": 0, "title": "string", "is_archived": true, "employees_count": 0 }, "work_pattern": { "id": 0, "title": "string", "monday": "string", "tuesday": "string", "wednesday": "string", "thursday": "string", "friday": "string", "saturday": "string", "sunday": "string", "is_archived": true }, "probation_ends_date": "2019-08-24", "legal_entity": { "id": 0, "title": "string", "tax_id": "string", "currency": { "code": "string", "name": "string", "name_plural": "string", "symbol": "string", "symbol_native": "string", "decimal_digits": 0, "rounding": 0 }, "location": { "id": 0, "title": "string", "address_1": "string", "address_2": "string", "city": "string", "state": "string", "zip": "string", "country": { "id": 0, "title": "string" }, "timezone": "string", "employees_count": 0, "is_archived": true }, "employees_count": 0, "is_archived": true }, "comment": "string", "changed_by": { "id": 0, "first_name": "string", "last_name": "string", "email": "string", "is_archived": false }, "contractual_fte": "string" }, "employee_termination": { "id": 0, "employee_id": 0, "date_effective_from": "string", "date_last_working": "string", "termination_leave_type": { "id": 0, "title": "string", "is_archived": true, "is_voluntary": true }, "termination_reason": { "id": 0, "title": "string", "is_archived": true, "is_voluntary": true }, "replacement_employee": { "id": 0, "first_name": "string", "last_name": "string", "email": "string", "is_archived": false }, "eligible_for_rehire": true, "comment": "string", "changed_by": { "id": 0, "first_name": "string", "last_name": "string", "email": "string", "is_archived": false } }, "employee_compensation": { "id": 0, "date_effective_from": "string", "date_effective_to": "string", "change_reason": { "id": 0, "title": "string" }, "base_salary_gross": "string", "base_salary_net": "string", "currency": "string", "comment": "string", "per_type": "hourly", "changed_by": { "id": 0, "first_name": "string", "last_name": "string", "email": "string", "is_archived": false }, "lines": [ { "id": 0, "compensation_type": { "id": 0, "title": "string", "is_archived": true }, "amount_gross": "string", "amount_net": "string", "currency": "string", "per_type": "hourly", "description": "string", "kind": "earning", "is_included_in_gross": true, "is_payable_to_employee": true, "is_included_in_total_cost": true, "rate_type": "fixed_amount", "percent": "string", "is_off_payroll": true } ], "rollups": { "currency_code": "string", "per_type": "hourly", "date_fx_rate": "string", "gross_amount": "string", "net_official_amount": "string", "net_actual_amount": "string", "total_cost_official_amount": "string", "total_cost_actual_amount": "string", "implied_deductions": "string" } }, "date_termination": "string", "applicant_id": 0, "candidate_id": 0, "name_pronunciation": "string", "time_off": { "date_from": "string", "date_to": "string", "category": { "id": 1, "title": "string", "description": "string", "category_type": "accrues_time", "paid_type": "not_working_paid", "emoji": "string", "color": "string", "policies_count": 0, "period_track_type": "days", "sort": 0, "is_archived": true }, "balance_requested": "string" }, "lifecycle_status": "hired", "datetime_last_online": "string", "is_archived": true, "datetime_invited_at": "string", "timezone": "string", "custom_fields": [ { "field": { "id": 0, "section_id": 0, "entity_type": "employee", "type": "employee_position_reporting_to", "field_type": "text", "title": "string", "description": "string", "slug": "string", "hint": "string", "is_mandatory": true, "config": { "is_multiple_values": true, "formula": "string", "is_visible_to_candidate": true }, "reference_entity": "legal_entity", "is_archived": true, "options": [ { "id": 0, "title": "string", "description": "string", "is_archived": true } ] }, "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_employees": [ { "id": 0, "first_name": "string", "last_name": "string", "email": "string", "is_archived": false } ], "value_references": [ { "id": 0, "title": "string", "is_archived": true } ] }, "permission_value": "none" } ], "custom_tables": [ { "table_id": 0, "rows": [ { "id": 0, "date_effective_from": "string", "is_current": true, "cells": [ { "field": { "id": 0, "section_id": 0, "entity_type": "employee", "type": "employee_position_reporting_to", "field_type": "text", "title": "string", "description": "string", "slug": "string", "hint": "string", "is_mandatory": true, "config": { "is_multiple_values": true, "formula": "string", "is_visible_to_candidate": true }, "reference_entity": "legal_entity", "is_archived": true, "options": [ { "id": 0, "title": "string", "description": "string", "is_archived": true } ] }, "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_employees": [ { "id": 0, "first_name": "string", "last_name": "string", "email": "string", "is_archived": false } ], "value_references": [ { "id": 0, "title": "string", "is_archived": true } ] }, "permission_value": "none" } ] } ] } ], "additional_compensations": [ { "id": 0, "date_effective_from": "string", "compensation_type": { "id": 0, "title": "string", "is_archived": true }, "description": "string", "amount": "string", "amount_gross": "string", "amount_net": "string", "currency": "string", "comment": "string" } ] }, "sort": 0, "role": "member", "description": "string" } ]}