Skip to content

Sets an user as Admin / Ambassador of a region / workgroup.

DELETE
/api/region/{regionId}/members/{memberId}/admin

Authorizations

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

Parameters

Path Parameters

regionId*
Typestring
Required
memberId*
Typestring
Required

Responses

Success
Authorization
api_key
Variables
Key
Value
regionId*
memberId*
cURL
curl -X DELETE \
'http://localhost/api/region/{regionId}/members/{memberId}/admin'

Samples

cURL
curl -X DELETE http://localhost/api/region/{regionId}/members/{memberId}/admin
JavaScript
fetch("http://localhost/api/region/{regionId}/members/{memberId}/admin", { method: "DELETE" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/region/{regionId}/members/{memberId}/admin");
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/region/{regionId}/members/{memberId}/admin")
print(response.json())