Update a member's role in the space
curl --request PATCH \
--url https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role": "moderator",
"email": "newemail@example.com",
"first_name": "Jane",
"last_name": "Smith"
}
'import requests
url = "https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/"
payload = {
"role": "moderator",
"email": "newemail@example.com",
"first_name": "Jane",
"last_name": "Smith"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
role: 'moderator',
email: 'newemail@example.com',
first_name: 'Jane',
last_name: 'Smith'
})
};
fetch('https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'role' => 'moderator',
'email' => 'newemail@example.com',
'first_name' => 'Jane',
'last_name' => 'Smith'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/"
payload := strings.NewReader("{\n \"role\": \"moderator\",\n \"email\": \"newemail@example.com\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"role\": \"moderator\",\n \"email\": \"newemail@example.com\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"role\": \"moderator\",\n \"email\": \"newemail@example.com\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\"\n}"
response = http.request(request)
puts response.read_body{
"id": "1234",
"created_at": "2026-11-18T18:30:45Z",
"updated_at": "2026-11-18T18:30:45Z",
"email": "<string>",
"member_type": "<string>",
"permalink": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"time_zone": "<string>",
"location": "<string>",
"bio": "<string>",
"referral_count": 123,
"avatar": "<string>",
"categories": "<string>",
"ambassador_level": "<string>",
"last_visited_at": "2026-11-18T18:30:48+00:00"
}{
"error": "<string>",
"reason": "<string>",
"credits_url": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Members
Update a member's role in the space
PATCH
/
admin
/
v1
/
networks
/
{network_id}
/
spaces
/
{space_id}
/
members
/
{user_id}
/
Update a member's role in the space
curl --request PATCH \
--url https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role": "moderator",
"email": "newemail@example.com",
"first_name": "Jane",
"last_name": "Smith"
}
'import requests
url = "https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/"
payload = {
"role": "moderator",
"email": "newemail@example.com",
"first_name": "Jane",
"last_name": "Smith"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
role: 'moderator',
email: 'newemail@example.com',
first_name: 'Jane',
last_name: 'Smith'
})
};
fetch('https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'role' => 'moderator',
'email' => 'newemail@example.com',
'first_name' => 'Jane',
'last_name' => 'Smith'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/"
payload := strings.NewReader("{\n \"role\": \"moderator\",\n \"email\": \"newemail@example.com\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"role\": \"moderator\",\n \"email\": \"newemail@example.com\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"role\": \"moderator\",\n \"email\": \"newemail@example.com\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\"\n}"
response = http.request(request)
puts response.read_body{
"id": "1234",
"created_at": "2026-11-18T18:30:45Z",
"updated_at": "2026-11-18T18:30:45Z",
"email": "<string>",
"member_type": "<string>",
"permalink": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"time_zone": "<string>",
"location": "<string>",
"bio": "<string>",
"referral_count": 123,
"avatar": "<string>",
"categories": "<string>",
"ambassador_level": "<string>",
"last_visited_at": "2026-11-18T18:30:48+00:00"
}{
"error": "<string>",
"reason": "<string>",
"credits_url": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Path Parameters
Body
application/json
Submit results as JSON
Request body for updating a member's role and profile information
Response
The updated member object
A member of a Network