Api InData Clientes
  1. Employee
Api InData Clientes
  • Api inData
    • Introducción
    • Autenticación
    • Respuestas del API
    • Client
      • Crear cliente
      • Actualizar cliente
      • Obtener cliente por código
    • ClientBranch
      • Crear una nueva sucursal de cliente
      • Actualizar una sucursal de cliente
      • Obtener una sucursal de cliente por código
    • Employee
      • Create Employee
        POST
      • Actualizar empleado
        PUT
      • Obtener Empleado
        GET
      • Actualizar foto empleado
        PATCH
    • OperationalSite
      • Crear sitio operativo / puesto
      • Actualizar sitio operativo / puesto
      • Obtener sitio operativo / puesto
    • HoursWorked
      • Consulta horas trabajadas
    • Programming
      • Crear programación
      • Actualizar programación
      • Obtener programación
      • Consultar programaciones
  1. Employee

Create Employee

Prod Env
https://api.indata.com.co
Prod Env
https://api.indata.com.co
POST
https://api.indata.com.co
/api/v1/employees
Este endpoint permite la creación de un nuevo empleado en inData, incluyendo toda la información básica necesaria.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Example
{
    "firstName": "Arturo",
    "lastName": "Navarro",
    "gender": "F",
    "code": "e87ke",
    "identification": "56148",
    "birthDate": "2023-09-08",
    "personalAddress": "Poblado Alberto Quintana, 1",
    "mobile": "951-747-080",
    "phone": "941 762 086",
    "entryDate": "2024-07-22T20:20:18.105Z",
    "bloodType": "O",
    "rhFactor": "-",
    "alternatePhone": "959 198 223",
    "extra1": "voluptas",
    "extra2": "ea",
    "extra3": "reprehenderit",
    "extra4": "perferendis",
    "isActive": true,
    "typeIdentification": {
        "name": "Licencia de Conducir"
    },
    "position": {
        "name": "Supervisor"
    },
    "city": {
        "name": "Elche"
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.indata.com.co/api/v1/employees' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstName": "Arturo",
    "lastName": "Navarro",
    "gender": "F",
    "code": "e87ke",
    "identification": "56148",
    "birthDate": "2023-09-08",
    "personalAddress": "Poblado Alberto Quintana, 1",
    "mobile": "951-747-080",
    "phone": "941 762 086",
    "entryDate": "2024-07-22T20:20:18.105Z",
    "bloodType": "O",
    "rhFactor": "-",
    "alternatePhone": "959 198 223",
    "extra1": "voluptas",
    "extra2": "ea",
    "extra3": "reprehenderit",
    "extra4": "perferendis",
    "isActive": true,
    "typeIdentification": {
        "name": "Licencia de Conducir"
    },
    "position": {
        "name": "Supervisor"
    },
    "city": {
        "name": "Elche"
    }
}'

Responses

🟢200Successful Response
application/json
Body

Example
{
    "id": 0,
    "firstName": "string",
    "lastName": "string",
    "gender": "M",
    "code": "string",
    "typeIdentification": {
        "name": "string",
        "id": 0,
        "abbreviation": "string"
    },
    "identification": "string",
    "birthDate": "2019-08-24",
    "position": {
        "name": "string",
        "id": 0,
        "code": "string"
    },
    "personalAddress": "string",
    "mobile": "string",
    "phone": "string",
    "entryDate": "2024-01-01 08:00:00",
    "bloodType": "A",
    "rhFactor": "+",
    "city": {
        "name": "string",
        "id": 0,
        "code": "string"
    },
    "alternatePhone": "string",
    "extra1": "string",
    "extra2": "string",
    "extra3": "string",
    "extra4": "string",
    "isActive": "true"
}
🟠422Validation Error
Modified at 2024-07-23 13:06:59
Previous
Obtener una sucursal de cliente por código
Next
Actualizar empleado
Built with