- Api inData
- Introducción
- Autenticación
- Respuestas del API
- Client
- ClientBranch
- Employee
- OperationalSite
- HoursWorked
Crear sitio operativo / puesto
Prod Env
Prod Env
POST
https://api.indata.com.co/api/v1/operational-site
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
x-api-key
string
required
Body Params application/json
clientBranch
object (ClientBranchFind)
required
code
string
optional
name
string
required
<= 255 characters
code
string
required
<= 255 characters
observations
string
optional
<= 65535 characters
gender
enum<string>
optional
Allowed values:
MF
Default:
null
coords
string
optional
<= 100 characters
Default:
null
minAge
integer
optional
>= 0<= 100
Default:
null
maxAge
integer
optional
>= 0<= 100
Default:
null
fullDayWorked
boolean
optional
Default:
true
isActive
boolean
optional
Default:
true
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 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 '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
id
integer
optional
clientBranch
object (ClientBranch)
required
name
string
optional
code
string
optional
alias
string | null
optional
coords
string
optional
radius
string
optional
radius_min
string
optional
address
string
optional
country_name
string
optional
state_name
string
optional
city_name
string
optional
phone
string | null
optional
phone_alt
string | null
optional
email
string | null
optional
email_alt
string | null
optional
extra1
string | null
optional
extra2
string | null
optional
extra3
string | null
optional
extra4
string | null
optional
extra5
string | null
optional
status
integer
optional
id
integer
optional
id_account_customer
integer
optional
id_account_geo_city
integer
optional
id_account_geo_zone
integer
optional
created_source
string
optional
city
object (City)
optional
zone
object (Zone)
optional
updated_ws_at
string <date-time> | null
optional
created_at
string <date-time>
optional
created_by
integer
optional
updated_at
string <date-time>
optional
updated_by
integer
optional
name
string
required
<= 255 characters
code
string
required
<= 255 characters
observations
string
optional
<= 65535 characters
gender
enum<string>
optional
Allowed values:
MF
Default:
null
coords
string
optional
<= 100 characters
Default:
null
minAge
integer
optional
>= 0<= 100
Default:
null
maxAge
integer
optional
>= 0<= 100
Default:
null
fullDayWorked
boolean
optional
Default:
true
isActive
boolean
optional
Default:
true
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