Api InData Clientes
  1. OperationalSite
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
      • Actualizar empleado
      • Obtener Empleado
      • Actualizar foto empleado
    • OperationalSite
      • Crear sitio operativo / puesto
        POST
      • Actualizar sitio operativo / puesto
        PUT
      • Obtener sitio operativo / puesto
        GET
    • HoursWorked
      • Consulta horas trabajadas
    • Programming
      • Crear programación
      • Actualizar programación
      • Obtener programación
      • Consultar programaciones
  1. OperationalSite

Crear sitio operativo / puesto

Prod Env
https://api.indata.com.co
Prod Env
https://api.indata.com.co
POST
https://api.indata.com.co
/api/v1/operational-site
Este endpoint permite la creación de un nuevo sitio operativo / puesto en el sistema, 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
{
    "clientBranch": {
        "code": "375mf"
    },
    "name": "Portería",
    "code": "92157",
    "observations": "radical Hybrid Buckinghamshire connecting Bután Ladrillo provident twig atop Gris",
    "gender": "M",
    "coords": "-80.3729,128.6689",
    "minAge": 92,
    "maxAge": 77,
    "fullDayWorked": true,
    "isActive": true
}

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/operational-site' \
--header 'x-api-key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "clientBranch": {
        "code": "375mf"
    },
    "name": "Portería",
    "code": "92157",
    "observations": "radical Hybrid Buckinghamshire connecting Bután Ladrillo provident twig atop Gris",
    "gender": "M",
    "coords": "-80.3729,128.6689",
    "minAge": 92,
    "maxAge": 77,
    "fullDayWorked": true,
    "isActive": true
}'

Responses

🟢201Sitio Operativo creado exitosamente
application/json
Body

Example
{
    "id": 3833,
    "clientBranch": {
        "id": 2495,
        "name": "Sucursal B2",
        "code": "ec79o"
    },
    "name": "Parqueadero",
    "code": "14814",
    "observations": "División Rover Pollo Electrónica Mazda Dinánmico Bebes Bedfordshire portals per",
    "gender": "F",
    "coords": "63.9737,170.1627",
    "minAge": 13,
    "maxAge": 25,
    "fullDayWorked": true,
    "isActive": false
}
🟠400Solicitud inválida
Modified at 2024-07-23 13:37:14
Previous
Actualizar foto empleado
Next
Actualizar sitio operativo / puesto
Built with