Sets an user as Admin / Ambassador of a region / workgroup.
POST
/api/region/{regionId}/members/{memberId}/adminAuthorizations
api_key
Type: API Key (header: X-CSRF-Token)
Parameters
Path Parameters
regionId*
Typestring
RequiredmemberId*
Typestring
RequiredResponses
Success
Authorization
api_key
Variables
Key
Value
regionId*
memberId*
cURL
curl -X POST \
'http://localhost/api/region/{regionId}/members/{memberId}/admin'
Samples
cURL
curl -X POST http://localhost/api/region/{regionId}/members/{memberId}/admin
JavaScript
fetch("http://localhost/api/region/{regionId}/members/{memberId}/admin", { method: "POST" })
.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, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.post("http://localhost/api/region/{regionId}/members/{memberId}/admin")
print(response.json())