Personnel
Overview
MiTrabajoWS provides you with an endpoint for uploading personnel information.
Upload
POST /personnel
Uploads the information for the personnel from the JSON data sent in the body of the HTTP request. The format and fields details can be found here.
Fields
nacionalidad
Must be a string of length 2.
pais_documento
Must be a string of length 2.
documento
Must be a string with a length between 5 and 100.
nombre
Must be a string with at most 100 characters.
apellido
Must be a string with at most 100 characters.
genero
Must be one of the following: 'M', 'F'.
f_nacimiento
Must be a date.
vence_ficha_medica
Must be a date.
nro_emp
Must be a string with at most 20 characters.
f_ingreso
Must be a date.
f_baja
Must be a date.
turno
Must be a string with a length between 2 and 25.
horas
Must be an integer in the range [0, 23].
minutos
Must be an integer in the range [0, 59].
pais_domicilio
Must be a string of length 2.
ciudad
Must be a string with at most 150 characters.
barrio
Must be a string with at most 100 characters.
calle
Must be a string with at most 100 characters.
nro_puerta
Must be a string with at most 50 characters.
piso
Must be an integer.
apartamento
Must be a string with at most 6 characters.
c_postal
Must be a string with at most 20 characters.
telefono
Must be a string with at most 50 characters.
mail
Must be a valid e-mail.
tipo_remuneracion
Must be one of the following: 'Mensual', 'Jornalero', 'Mixto', 'A la parte'.
horario_libre
Must be either 1 or 0.
fin_contrato
Must be a date.
dias_planificados
Must be an integer in the range [0, 365].
estado
Must be one of the following: 'Activo', 'Inactivo'.
es_cliente
Must be an integer.
categoria
Must be a string with a length between 2 and 250.
id_externo
Must be an integer.
proveedor
Must be a string with at most 50 characters.