curl --request PUT \
--url https://app.base44.com/api/apps/{app_id}/access-requests/{request_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"department": "sales",
"team": "EMEA"
}
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/access-requests/{request_id}"
payload = { "data": {
"department": "sales",
"team": "EMEA"
} }
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({data: {department: 'sales', team: 'EMEA'}})
};
fetch('https://app.base44.com/api/apps/{app_id}/access-requests/{request_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://app.base44.com/api/apps/{app_id}/access-requests/{request_id}",
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([
'data' => [
'department' => 'sales',
'team' => 'EMEA'
]
]),
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://app.base44.com/api/apps/{app_id}/access-requests/{request_id}"
payload := strings.NewReader("{\n \"data\": {\n \"department\": \"sales\",\n \"team\": \"EMEA\"\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://app.base44.com/api/apps/{app_id}/access-requests/{request_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"department\": \"sales\",\n \"team\": \"EMEA\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/access-requests/{request_id}")
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 \"data\": {\n \"department\": \"sales\",\n \"team\": \"EMEA\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"department": "sales",
"team": "EMEA"
}
}Update pending invitee
Sets custom User fields on someone who hasn’t joined the app yet. When they join, the values are copied onto their user record.
The fields you send are merged into the stored ones, and a field you leave out keeps its value. Built-in fields such as email, full_name, role and id are ignored. Field-level security rules on the User entity apply, and a value over 20,000 characters is refused. Once the person has joined, change them with Update app user instead, because this endpoint returns a 404 for them.
curl --request PUT \
--url https://app.base44.com/api/apps/{app_id}/access-requests/{request_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"department": "sales",
"team": "EMEA"
}
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/access-requests/{request_id}"
payload = { "data": {
"department": "sales",
"team": "EMEA"
} }
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({data: {department: 'sales', team: 'EMEA'}})
};
fetch('https://app.base44.com/api/apps/{app_id}/access-requests/{request_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://app.base44.com/api/apps/{app_id}/access-requests/{request_id}",
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([
'data' => [
'department' => 'sales',
'team' => 'EMEA'
]
]),
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://app.base44.com/api/apps/{app_id}/access-requests/{request_id}"
payload := strings.NewReader("{\n \"data\": {\n \"department\": \"sales\",\n \"team\": \"EMEA\"\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://app.base44.com/api/apps/{app_id}/access-requests/{request_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"department\": \"sales\",\n \"team\": \"EMEA\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/access-requests/{request_id}")
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 \"data\": {\n \"department\": \"sales\",\n \"team\": \"EMEA\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"department": "sales",
"team": "EMEA"
}
}Authorizations
Personal access token, sent as Authorization: Bearer <token>.
Path Parameters
ID of the access request, as id in the response of List access requests.
ID of the app.
Body
Custom User fields to set on the invitation, as field names and values.
{ "department": "sales", "team": "EMEA" }
Response
The invitation's custom fields after the update.
Doc-only: the handler returns a plain dict with exactly these keys.
Was this page helpful?