Skip to content

Demotes a user from store manager to regular store team member.

DELETE
/api/stores/{storeId}/managers/{userId}

Authorizations

Parameters

Path Parameters

storeId*

which store to manage

Typeinteger
Required
userId*

which user to remove as manager

Typeinteger
Required

Responses

Success

Samples

cURL
curl -X DELETE http://localhost/api/stores/{storeId}/managers/{userId}
JavaScript
fetch("http://localhost/api/stores/{storeId}/managers/{userId}", { method: "DELETE" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/stores/{storeId}/managers/{userId}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.delete("http://localhost/api/stores/{storeId}/managers/{userId}")
print(response.json())