Update business
Update details for a DaaS business you own.
PUT
/api/daas/{businessId}/update-businessbusinessId must belong to the current org.
Example:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…
PATH SCHEMA
businessIdrequiredREQUEST BODY SCHEMA: application/json
businessNameaddressNotelocationrequiredlatituderequiredlongituderequiredemailphoneNumberrequiredRESPONSE BODY SCHEMA: application/json
statusmessagedataResponses
200 — Update result
200 — Update result
status is success when the update is saved.
Request example
cURL
bashcurl -X PUT http://ext-integration.haat-delivery.io/api/daas/180/update-business \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"businessName":"bakery","location":{"latitude":32.51,"longitude":35.51},"phoneNumber":"+972542182747"}'Response example
200
json{"status":"success","message":null,"data":null}