Skip to main content
PATCH
/
v1
/
api
/
agencies
/
{agencyId}
/
branches
/
{branchId}
/
toggle
Toggle branch active status
curl --request PATCH \
  --url http://localhost:3091/v1/api/agencies/{agencyId}/branches/{branchId}/toggle \
  --header 'Authorization: Bearer <token>'
{
  "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

Response

Branch status toggled

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