Skip to content

Updates the status of a basket request. The creator of a basket can set the status of requests for their basket (e.g. mark as picked up, not picked up, denied etc.).

PATCH
/api/baskets/{basketId}/requests/{requesterId}/status

Authorizations

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

Parameters

Path Parameters

basketId*
Typestring
Required
requesterId*
Typestring
Required

Request Body

JSON
{
"status": "string"
}

Responses

Success
Authorization
api_key
Variables
Key
Value
basketId*
requesterId*
cURL
curl -X PATCH \
'http://localhost/api/baskets/{basketId}/requests/{requesterId}/status' \
 --data '{
  "status": "string"
}'

Samples

cURL
curl -X PATCH http://localhost/api/baskets/{basketId}/requests/{requesterId}/status
JavaScript
fetch("http://localhost/api/baskets/{basketId}/requests/{requesterId}/status", { method: "PATCH" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/baskets/{basketId}/requests/{requesterId}/status");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.patch("http://localhost/api/baskets/{basketId}/requests/{requesterId}/status")
print(response.json())