- Api inData
- Introducción
- Autenticación
- Respuestas del API
- Client
- ClientBranch
- Employee
- OperationalSite
- HoursWorked
Actualizar sitio operativo / puesto
Prod Env
Prod Env
PUT
https://api.indata.com.co/api/v1/operational-site/{code}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
code
string
required
Example:
486465
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": "u9c7b"
},
"name": "Portería",
"code": "55690",
"observations": "Blanco Villalobos bandwidth bus Southeast Gris Account dedicada Aruba Bicycle",
"gender": "M",
"coords": "22.4151,-22.6709",
"minAge": 93,
"maxAge": 67,
"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 PUT 'https://api.indata.com.co/api/v1/operational-site/486465' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"clientBranch": {
"code": "u9c7b"
},
"name": "Portería",
"code": "55690",
"observations": "Blanco Villalobos bandwidth bus Southeast Gris Account dedicada Aruba Bicycle",
"gender": "M",
"coords": "22.4151,-22.6709",
"minAge": 93,
"maxAge": 67,
"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": 6276,
"clientBranch": {
"id": 9709,
"name": "Sucursal C3",
"code": "sngqt"
},
"name": "Portería",
"code": "32645",
"observations": "Passenger Hatchback Livermorium Credit capacitor Pelota F2M Distrito Southwest Southeast",
"gender": "F",
"coords": "-69.3534,124.7301",
"minAge": 17,
"maxAge": 78,
"fullDayWorked": false,
"isActive": true
}
🟠400Solicitud inválida
Modified at 2024-07-23 13:53:08