Replace the member-type audience
Replaces which member types the form is restricted to. Send member_type_ids as a non-empty array of member type IDs belonging to your company; an empty array is rejected, since removing every restriction means Clear the member-type audience instead. An archived member type may stay on an existing audience but cannot be added here for the first time. IDs are case-insensitive. Returns 404 when the form isn’t one of your company’s, and 422 when member_type_ids is missing, not an array of strings, empty, or names a member type that is malformed, unknown, in another company, or archived-and-not-already-present. Unknown and other-company IDs get the same 422.
curl --request PUT \
--url https://api.fluid.app/api/forms/{id}/member_type_audience \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"member_type_ids": [
"019fc7be-e7c8-7c16-9db1-15a980fbf83a"
]
}
'import requests
url = "https://api.fluid.app/api/forms/{id}/member_type_audience"
payload = { "member_type_ids": ["019fc7be-e7c8-7c16-9db1-15a980fbf83a"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({member_type_ids: ['019fc7be-e7c8-7c16-9db1-15a980fbf83a']})
};
fetch('https://api.fluid.app/api/forms/{id}/member_type_audience', 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/forms/{id}/member_type_audience",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'member_type_ids' => [
'019fc7be-e7c8-7c16-9db1-15a980fbf83a'
]
]),
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/forms/{id}/member_type_audience"
payload := strings.NewReader("{\n \"member_type_ids\": [\n \"019fc7be-e7c8-7c16-9db1-15a980fbf83a\"\n ]\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.fluid.app/api/forms/{id}/member_type_audience")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"member_type_ids\": [\n \"019fc7be-e7c8-7c16-9db1-15a980fbf83a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/forms/{id}/member_type_audience")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"member_type_ids\": [\n \"019fc7be-e7c8-7c16-9db1-15a980fbf83a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"member_type_audience": {
"member_type_ids": [
"019fc7be-e7c8-7c16-9db1-15a980fbf83a"
],
"member_types": [
{
"id": "019fc7be-e7c8-7c16-9db1-15a980fbf83a",
"slug": "rep",
"name": "Rep",
"archived": false
}
]
},
"meta": {
"request_id": "4d0f6a2e-8b35-4c93-b124-3e7a0f5c1d89",
"timestamp": "2026-10-07T16:10:41Z"
}
}Authorizations
Bearer token authentication
Path Parameters
ID of the form.
Body
The member types to restrict the form to.
Non-empty array of member type IDs belonging to your company.
Response
Success
The form's explicit member-type audience. A form with no audience applies to every member type; member_type_ids is null in that case. A form with an audience applies only to the member types member_type_ids names.
curl --request PUT \
--url https://api.fluid.app/api/forms/{id}/member_type_audience \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"member_type_ids": [
"019fc7be-e7c8-7c16-9db1-15a980fbf83a"
]
}
'import requests
url = "https://api.fluid.app/api/forms/{id}/member_type_audience"
payload = { "member_type_ids": ["019fc7be-e7c8-7c16-9db1-15a980fbf83a"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({member_type_ids: ['019fc7be-e7c8-7c16-9db1-15a980fbf83a']})
};
fetch('https://api.fluid.app/api/forms/{id}/member_type_audience', 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/forms/{id}/member_type_audience",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'member_type_ids' => [
'019fc7be-e7c8-7c16-9db1-15a980fbf83a'
]
]),
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/forms/{id}/member_type_audience"
payload := strings.NewReader("{\n \"member_type_ids\": [\n \"019fc7be-e7c8-7c16-9db1-15a980fbf83a\"\n ]\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.fluid.app/api/forms/{id}/member_type_audience")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"member_type_ids\": [\n \"019fc7be-e7c8-7c16-9db1-15a980fbf83a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/forms/{id}/member_type_audience")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"member_type_ids\": [\n \"019fc7be-e7c8-7c16-9db1-15a980fbf83a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"member_type_audience": {
"member_type_ids": [
"019fc7be-e7c8-7c16-9db1-15a980fbf83a"
],
"member_types": [
{
"id": "019fc7be-e7c8-7c16-9db1-15a980fbf83a",
"slug": "rep",
"name": "Rep",
"archived": false
}
]
},
"meta": {
"request_id": "4d0f6a2e-8b35-4c93-b124-3e7a0f5c1d89",
"timestamp": "2026-10-07T16:10:41Z"
}
}