Moves a store-team member from the regular team to the standby team.
PATCH
/api/stores/{storeId}/members/{userId}/standbyWill also succeed if the member was already part of the standby team.
Authorizations
api_key
Type: API Key (header: X-CSRF-Token)
Parameters
Path Parameters
storeId*
team of which store to manage
Typeinteger
RequireduserId*
who should be moved to the standby team
Typeinteger
RequiredResponses
Success
Authorization
api_key
Variables
Key
Value
storeId*
userId*
cURL
curl -X PATCH \
'http://localhost/api/stores/{storeId}/members/{userId}/standby'
Samples
cURL
curl -X PATCH http://localhost/api/stores/{storeId}/members/{userId}/standby
JavaScript
fetch("http://localhost/api/stores/{storeId}/members/{userId}/standby", { method: "PATCH" })
.then(response => response.json())
.then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/stores/{storeId}/members/{userId}/standby");
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/stores/{storeId}/members/{userId}/standby")
print(response.json())