Create Branch
POST
http://82.180.154.188:4352/branches
Last modified:2025-04-13 22:57:29
[{ "day": "Saturday", "isActive": false, "timeRanges": [] },.....]
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://82.180.154.188:4352/branches' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Downtown Branch for testing loation",
"location": {
"area": "Downtown",
"coordinates": [30.111111, 30.111112]
},
"workingDays": [
{
"day": "Saturday",
"isActive": true,
"timeRanges": [
{ "from": "08:00", "to": "12:00" },
{ "from": "16:00", "to": "20:00" }
]
},
{
"day": "Sunday",
"isActive": false,
"timeRanges": []
}
]
}'
Response Response Example
{
"status": "success",
"message": "Branch created successfully"
}
Request
Header Params
Authorization
string
required
Example:
Bearer {{JWT}}
Body Params application/json