Update Branch
PUT https://api.salla.dev/admin/v2/branches/:branch
This endpoint allows you to update branch details by providing the ID of the branch you want to update its details in the branch path parameter.
Request Body
{"name"=>"<string>", "logo"=>"<string>", "banner"=>"<string>", "description"=>"<string>", "metadata_title"=>"<string>", "metadata_description "=>"<string>", "metadata_url"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"status":"\u003cnumber\u003e","success":"\u003cboolean\u003e","data":{"id":"\u003cinteger\u003e","name":"\u003cstring\u003e","status":"inactive","location":{"lat":"\u003cstring\u003e","lng":"\u003cstring\u003e"},"street":"\u003cstring\u003e","address_description":"\u003cstring\u003e","additional_number":"\u003cstring\u003e","building_number":"\u003cstring\u003e","local":"\u003cstring\u003e","postal_code":"\u003cstring\u003e","contacts":{"phone":"\u003cstring\u003e","whatsapp":"\u003cstring\u003e","telephone":"\u003cstring\u003e"},"preparation_time":"\u003cstring\u003e","is_open":"\u003cboolean\u003e","closest_time":{"nullable":true,"description":"The time when the branch will be closed based on the request time. Each request may have a different value. "},"working_hours":[{"name":"\u003cstring\u003e","times":[{"from":"\u003cstring\u003e","to":"\u003cstring\u003e"},{"from":"\u003cstring\u003e","to":"\u003cstring\u003e"}]},{"name":"\u003cstring\u003e","times":[{"from":"\u003cstring\u003e","to":"\u003cstring\u003e"},{"from":"\u003cstring\u003e","to":"\u003cstring\u003e"}]}],"is_cod_available":"\u003cboolean\u003e","is_default":"\u003cboolean\u003e","type":"branch","cod_cost":"\u003cstring\u003e","country":{"id":"\u003cinteger\u003e","name":"\u003cstring\u003e","name_en":"\u003cstring\u003e","code":"\u003cstring\u003e","mobile_code":"\u003cstring\u003e"},"city":{"id":"\u003cinteger\u003e","name":"\u003cstring\u003e","name_en":"\u003cstring\u003e"}}}