Configures the regular pickups for a store.
PUT
/api/stores/{storeId}/regularPickupAuthorizations
Parameters
Path Parameters
storeId*
Typestring
RequiredRequest Body
JSON
[
{
"weekday": 1,
"startTimeOfPickup": "17:20:00",
"maxCountOfSlots": 3,
"description": "Reserved for new Foodsavers"
}
]
Responses
Samples
cURL
curl -X PUT http://localhost/api/stores/{storeId}/regularPickup
JavaScript
fetch("http://localhost/api/stores/{storeId}/regularPickup", { method: "PUT" })
.then(response => response.json())
.then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/stores/{storeId}/regularPickup");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.put("http://localhost/api/stores/{storeId}/regularPickup")
print(response.json())