- Api inData
- Introducción
- Autenticación
- Respuestas del API
- Client
- ClientBranch
- Employee
- OperationalSite
- HoursWorked
Actualizar una sucursal de cliente
Prod Env
Prod Env
PUT
https://api.indata.com.co/api/v1/client_branch/{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
Header Params
x-api-key
string
required
Body Params application/json
name
string
required
code
string
required
alias
string | null
optional
client
object
required
code
string
required
coords
string | null
optional
radius
string | null
optional
radius_min
string | null
optional
address
string | null
optional
country_name
string | null
optional
state_name
string | null
optional
city_name
string | null
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
>= 0<= 1
city
object (CityCreate)
required
name
string
Name
zone
object (ZoneFind)
optional
name
string
optional
Example
{
"name": "e-business",
"code": "hh4v7",
"alias": "networks",
"client": {
"code": "e8u2g"
},
"coords": "-80.6853,8.5626",
"radius": "86",
"radius_min": "60",
"address": "North",
"country_name": "Brasil",
"state_name": "País Vasco",
"city_name": "Parla",
"phone": "937505269",
"phone_alt": "959-349-929",
"email": "Mariana.Fras73@yahoo.com",
"email_alt": "JosEmilio.Ozuna24@yahoo.com",
"extra1": "in qui ullamco",
"extra2": "culpa enim in mollit",
"extra3": "dolore amet mollit esse",
"extra4": "elit commodo enim nulla reprehenderit",
"extra5": null,
"status": 1,
"city": {
"name": "Orihuela"
},
"zone": {
"name": "Zona Norte"
}
}
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/client_branch/' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "e-business",
"code": "hh4v7",
"alias": "networks",
"client": {
"code": "e8u2g"
},
"coords": "-80.6853,8.5626",
"radius": "86",
"radius_min": "60",
"address": "North",
"country_name": "Brasil",
"state_name": "País Vasco",
"city_name": "Parla",
"phone": "937505269",
"phone_alt": "959-349-929",
"email": "Mariana.Fras73@yahoo.com",
"email_alt": "JosEmilio.Ozuna24@yahoo.com",
"extra1": "in qui ullamco",
"extra2": "culpa enim in mollit",
"extra3": "dolore amet mollit esse",
"extra4": "elit commodo enim nulla reprehenderit",
"extra5": null,
"status": 1,
"city": {
"name": "Orihuela"
},
"zone": {
"name": "Zona Norte"
}
}'
Responses
🟢200Sucursal actualizada
application/json
Body
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
name
string
Name
id
integer
Id
code
string
Code
zone
object (Zone)
optional
name
string
optional
id
integer
optional
code
string | null
optional
description
string | null
optional
isActive
boolean
optional
city
object (City)
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
Example
{
"name": "string",
"code": "string",
"alias": "string",
"coords": "string",
"radius": "string",
"radius_min": "string",
"address": "string",
"country_name": "string",
"state_name": "string",
"city_name": "string",
"phone": "string",
"phone_alt": "string",
"email": "string",
"email_alt": "string",
"extra1": "string",
"extra2": "string",
"extra3": "string",
"extra4": "string",
"extra5": "string",
"status": 0,
"id": 0,
"id_account_customer": 0,
"id_account_geo_city": 0,
"id_account_geo_zone": 0,
"created_source": "string",
"city": {
"name": "string",
"id": 0,
"code": "string"
},
"zone": {
"name": "string",
"id": 0,
"code": "string",
"description": "string",
"isActive": true,
"city": {
"name": "string",
"id": 0,
"code": "string"
}
},
"updated_ws_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"created_by": 0,
"updated_at": "2019-08-24T14:15:22Z",
"updated_by": 0
}
Modified at 2024-08-30 03:40:53