cURL
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 }
Updates the details of an existing branch
JWT access token from POST /v1/api/auth/login
255
500
100
30
Branch updated