Skip to main content
PUT
/
v1
/
api
/
agencies
/
{agencyId}
/
branches
/
{branchId}
Update a branch
curl --request PUT \
  --url http://localhost:3091/v1/api/agencies/{agencyId}/branches/{branchId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "address": "<string>",
  "city": "<string>",
  "country": "<string>",
  "phone": "<string>",
  "openingHours": "<string>",
  "gpsLat": 123,
  "gpsLng": 123
}
'
{
  "id": 123,
  "agencyId": 123,
  "name": "<string>",
  "address": "<string>",
  "city": "<string>",
  "country": "<string>",
  "phone": "<string>",
  "openingHours": "<string>",
  "gpsLat": 123,
  "gpsLng": 123,
  "isActive": true
}

Authorizations

Authorization
string
header
required

JWT access token from POST /v1/api/auth/login

Path Parameters

agencyId
integer<int64>
required
branchId
integer<int64>
required

Body

application/json
name
string
required
Maximum string length: 255
address
string
Maximum string length: 500
city
string
Maximum string length: 100
country
string
Maximum string length: 100
phone
string
Maximum string length: 30
openingHours
string
gpsLat
number<double>
gpsLng
number<double>

Response

Branch updated

id
integer<int64>
agencyId
integer<int64>
name
string
address
string
city
string
country
string
phone
string
openingHours
string
gpsLat
number<double>
gpsLng
number<double>
isActive
boolean