Member sites
Change a member site's name, order, activity or rule
Only the fields sent are changed. That matters more here than usual: an axis sent as [] widens the site to everybody, so “absent” and “cleared” cannot be allowed to mean the same thing.
PATCH
/
api
/
company
/
members_sites
/
{id}
Change a member site's name, order, activity or rule
curl --request PATCH \
--url https://api.fluid.app/api/company/members_sites/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"members_site": {
"name": "Leaders",
"position": 0
}
}
'import requests
url = "https://api.fluid.app/api/company/members_sites/{id}"
payload = { "members_site": {
"name": "Leaders",
"position": 0
} }
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({members_site: {name: 'Leaders', position: 0}})
};
fetch('https://api.fluid.app/api/company/members_sites/{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.fluid.app/api/company/members_sites/{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([
'members_site' => [
'name' => 'Leaders',
'position' => 0
]
]),
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.fluid.app/api/company/members_sites/{id}"
payload := strings.NewReader("{\n \"members_site\": {\n \"name\": \"Leaders\",\n \"position\": 0\n }\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.fluid.app/api/company/members_sites/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"members_site\": {\n \"name\": \"Leaders\",\n \"position\": 0\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/members_sites/{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 \"members_site\": {\n \"name\": \"Leaders\",\n \"position\": 0\n }\n}"
response = http.request(request)
puts response.read_body{
"members_site": {
"id": 6021,
"name": "Leaders",
"active": true,
"default": false,
"position": 1,
"layout_name": "theme",
"menu_slug": "reps-navigation",
"menu_id": 4417,
"unconstrained": false,
"rule": {
"country_ids": [
214
],
"member_type_ids": [
"0191d3f0-7c2a-7b4e-9d61-3f8a2c5e1b07"
]
},
"pages": [
{
"id": 81530,
"title": "Rewards",
"slug": "rewards",
"published": true,
"path": "/accounts/rewards",
"template_id": 55102,
"updated_at": "2026-09-18T14:03:27Z"
}
]
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
Bearer token authentication
Path Parameters
The site's id, which must belong to this company's selected theme.
Query Parameters
Company-owned theme being edited, including draft themes. Omit for the active theme. Unknown or foreign themes return 404 without falling back.
Required range:
x >= 1Body
application/json
Show child attributes
Show child attributes
Response
The changed site
An access rule and the page set it governs, scoped to one theme. The rule is a permission, not a presentation choice: a member who does not match a site cannot reach its pages, and requesting one returns 404. That is what separates a site from an audience.
Show child attributes
Show child attributes
⌘I
Change a member site's name, order, activity or rule
curl --request PATCH \
--url https://api.fluid.app/api/company/members_sites/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"members_site": {
"name": "Leaders",
"position": 0
}
}
'import requests
url = "https://api.fluid.app/api/company/members_sites/{id}"
payload = { "members_site": {
"name": "Leaders",
"position": 0
} }
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({members_site: {name: 'Leaders', position: 0}})
};
fetch('https://api.fluid.app/api/company/members_sites/{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.fluid.app/api/company/members_sites/{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([
'members_site' => [
'name' => 'Leaders',
'position' => 0
]
]),
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.fluid.app/api/company/members_sites/{id}"
payload := strings.NewReader("{\n \"members_site\": {\n \"name\": \"Leaders\",\n \"position\": 0\n }\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.fluid.app/api/company/members_sites/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"members_site\": {\n \"name\": \"Leaders\",\n \"position\": 0\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/members_sites/{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 \"members_site\": {\n \"name\": \"Leaders\",\n \"position\": 0\n }\n}"
response = http.request(request)
puts response.read_body{
"members_site": {
"id": 6021,
"name": "Leaders",
"active": true,
"default": false,
"position": 1,
"layout_name": "theme",
"menu_slug": "reps-navigation",
"menu_id": 4417,
"unconstrained": false,
"rule": {
"country_ids": [
214
],
"member_type_ids": [
"0191d3f0-7c2a-7b4e-9d61-3f8a2c5e1b07"
]
},
"pages": [
{
"id": 81530,
"title": "Rewards",
"slug": "rewards",
"published": true,
"path": "/accounts/rewards",
"template_id": 55102,
"updated_at": "2026-09-18T14:03:27Z"
}
]
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}