Skip to content

Configures the regular pickups for a store.

PUT
/api/stores/{storeId}/regularPickup

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

storeId*
Typestring
Required

Request Body

JSON
[
{
"weekday": 1,
"startTimeOfPickup": "17:20:00",
"maxCountOfSlots": 3,
"description": "Reserved for new Foodsavers"
}
]

Responses

Authorization
api_key
Variables
Key
Value
storeId*
cURL
curl -X PUT \
'http://localhost/api/stores/{storeId}/regularPickup' \
 --data '[
  {
    "weekday": 1,
    "startTimeOfPickup": "17:20:00",
    "maxCountOfSlots": 3,
    "description": "Reserved for new Foodsavers"
  }
]'

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())