curl --request PATCH \
--url https://app.orgo.space/api/v1/workspace-settings/users \
--header 'Api-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"isActive": true,
"hasUserTypes": true,
"hasRoles": true,
"hasProfileActivity": true,
"congressionalDistrictTagging": true,
"hasVolunteerRoles": true,
"hasOrganisationalChart": true,
"hasCardId": true,
"childrenAuthRestrictionAge": 1,
"childrenMinRegistrationAge": 1,
"hasFamilyMembers": true,
"hasManualApprove": true,
"hasFullMembership": true,
"hasFamilyNonMembers": true,
"hasRegistrationForm": true,
"hasListFieldAge": true,
"hasMinorTag": true,
"hasUserInvitation": true,
"whoCanSendUserInvitation": "ROLE_USER",
"whoCanSeeUserType": "USER",
"whoCanFilterUsersByType": "USER",
"seeMembersInGeneralUnitGroup": "USER",
"seeMembersInLocalCenter": "USER",
"customHomepage": "string",
"anonymousHomepage": "string",
"hasConnections": true,
"userRecommendations": true,
"adminCanChangeProfileImage": true,
"sendWelcomeMessageOnStatusActive": true,
"defaultUserTypeIdAfterRegistration": 42,
"guestUserTypeId": 42,
"dateJoinedEqualsDateFullMember": true,
"interestCustomFieldId": 42,
"hasSkills": true,
"hasAvailability": true,
"notifyAdminsOfNewRegistrations": true,
"notifyAdminsOnAccountDeactivation": true,
"canReactivateAccountOnLogin": true,
"retentionMonths": 6,
"privatizeUserProfiles": true,
"allowLocalAdminsToModifyUserPermissions": true,
"defaultStatusForAdminRegistration": "ACTIVE",
"nameDisplayLastNameFirst": true,
"profileCompletionEnabled": true,
"hasMergeProfiles": true,
"passwordLoginByDefault": true
}
'import requests
url = "https://app.orgo.space/api/v1/workspace-settings/users"
payload = {
"isActive": True,
"hasUserTypes": True,
"hasRoles": True,
"hasProfileActivity": True,
"congressionalDistrictTagging": True,
"hasVolunteerRoles": True,
"hasOrganisationalChart": True,
"hasCardId": True,
"childrenAuthRestrictionAge": 1,
"childrenMinRegistrationAge": 1,
"hasFamilyMembers": True,
"hasManualApprove": True,
"hasFullMembership": True,
"hasFamilyNonMembers": True,
"hasRegistrationForm": True,
"hasListFieldAge": True,
"hasMinorTag": True,
"hasUserInvitation": True,
"whoCanSendUserInvitation": "ROLE_USER",
"whoCanSeeUserType": "USER",
"whoCanFilterUsersByType": "USER",
"seeMembersInGeneralUnitGroup": "USER",
"seeMembersInLocalCenter": "USER",
"customHomepage": "string",
"anonymousHomepage": "string",
"hasConnections": True,
"userRecommendations": True,
"adminCanChangeProfileImage": True,
"sendWelcomeMessageOnStatusActive": True,
"defaultUserTypeIdAfterRegistration": 42,
"guestUserTypeId": 42,
"dateJoinedEqualsDateFullMember": True,
"interestCustomFieldId": 42,
"hasSkills": True,
"hasAvailability": True,
"notifyAdminsOfNewRegistrations": True,
"notifyAdminsOnAccountDeactivation": True,
"canReactivateAccountOnLogin": True,
"retentionMonths": 6,
"privatizeUserProfiles": True,
"allowLocalAdminsToModifyUserPermissions": True,
"defaultStatusForAdminRegistration": "ACTIVE",
"nameDisplayLastNameFirst": True,
"profileCompletionEnabled": True,
"hasMergeProfiles": True,
"passwordLoginByDefault": True
}
headers = {
"Api-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Api-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
isActive: true,
hasUserTypes: true,
hasRoles: true,
hasProfileActivity: true,
congressionalDistrictTagging: true,
hasVolunteerRoles: true,
hasOrganisationalChart: true,
hasCardId: true,
childrenAuthRestrictionAge: 1,
childrenMinRegistrationAge: 1,
hasFamilyMembers: true,
hasManualApprove: true,
hasFullMembership: true,
hasFamilyNonMembers: true,
hasRegistrationForm: true,
hasListFieldAge: true,
hasMinorTag: true,
hasUserInvitation: true,
whoCanSendUserInvitation: 'ROLE_USER',
whoCanSeeUserType: 'USER',
whoCanFilterUsersByType: 'USER',
seeMembersInGeneralUnitGroup: 'USER',
seeMembersInLocalCenter: 'USER',
customHomepage: 'string',
anonymousHomepage: 'string',
hasConnections: true,
userRecommendations: true,
adminCanChangeProfileImage: true,
sendWelcomeMessageOnStatusActive: true,
defaultUserTypeIdAfterRegistration: 42,
guestUserTypeId: 42,
dateJoinedEqualsDateFullMember: true,
interestCustomFieldId: 42,
hasSkills: true,
hasAvailability: true,
notifyAdminsOfNewRegistrations: true,
notifyAdminsOnAccountDeactivation: true,
canReactivateAccountOnLogin: true,
retentionMonths: 6,
privatizeUserProfiles: true,
allowLocalAdminsToModifyUserPermissions: true,
defaultStatusForAdminRegistration: 'ACTIVE',
nameDisplayLastNameFirst: true,
profileCompletionEnabled: true,
hasMergeProfiles: true,
passwordLoginByDefault: true
})
};
fetch('https://app.orgo.space/api/v1/workspace-settings/users', 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.orgo.space/api/v1/workspace-settings/users",
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([
'isActive' => true,
'hasUserTypes' => true,
'hasRoles' => true,
'hasProfileActivity' => true,
'congressionalDistrictTagging' => true,
'hasVolunteerRoles' => true,
'hasOrganisationalChart' => true,
'hasCardId' => true,
'childrenAuthRestrictionAge' => 1,
'childrenMinRegistrationAge' => 1,
'hasFamilyMembers' => true,
'hasManualApprove' => true,
'hasFullMembership' => true,
'hasFamilyNonMembers' => true,
'hasRegistrationForm' => true,
'hasListFieldAge' => true,
'hasMinorTag' => true,
'hasUserInvitation' => true,
'whoCanSendUserInvitation' => 'ROLE_USER',
'whoCanSeeUserType' => 'USER',
'whoCanFilterUsersByType' => 'USER',
'seeMembersInGeneralUnitGroup' => 'USER',
'seeMembersInLocalCenter' => 'USER',
'customHomepage' => 'string',
'anonymousHomepage' => 'string',
'hasConnections' => true,
'userRecommendations' => true,
'adminCanChangeProfileImage' => true,
'sendWelcomeMessageOnStatusActive' => true,
'defaultUserTypeIdAfterRegistration' => 42,
'guestUserTypeId' => 42,
'dateJoinedEqualsDateFullMember' => true,
'interestCustomFieldId' => 42,
'hasSkills' => true,
'hasAvailability' => true,
'notifyAdminsOfNewRegistrations' => true,
'notifyAdminsOnAccountDeactivation' => true,
'canReactivateAccountOnLogin' => true,
'retentionMonths' => 6,
'privatizeUserProfiles' => true,
'allowLocalAdminsToModifyUserPermissions' => true,
'defaultStatusForAdminRegistration' => 'ACTIVE',
'nameDisplayLastNameFirst' => true,
'profileCompletionEnabled' => true,
'hasMergeProfiles' => true,
'passwordLoginByDefault' => true
]),
CURLOPT_HTTPHEADER => [
"Api-Token: <api-key>",
"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.orgo.space/api/v1/workspace-settings/users"
payload := strings.NewReader("{\n \"isActive\": true,\n \"hasUserTypes\": true,\n \"hasRoles\": true,\n \"hasProfileActivity\": true,\n \"congressionalDistrictTagging\": true,\n \"hasVolunteerRoles\": true,\n \"hasOrganisationalChart\": true,\n \"hasCardId\": true,\n \"childrenAuthRestrictionAge\": 1,\n \"childrenMinRegistrationAge\": 1,\n \"hasFamilyMembers\": true,\n \"hasManualApprove\": true,\n \"hasFullMembership\": true,\n \"hasFamilyNonMembers\": true,\n \"hasRegistrationForm\": true,\n \"hasListFieldAge\": true,\n \"hasMinorTag\": true,\n \"hasUserInvitation\": true,\n \"whoCanSendUserInvitation\": \"ROLE_USER\",\n \"whoCanSeeUserType\": \"USER\",\n \"whoCanFilterUsersByType\": \"USER\",\n \"seeMembersInGeneralUnitGroup\": \"USER\",\n \"seeMembersInLocalCenter\": \"USER\",\n \"customHomepage\": \"string\",\n \"anonymousHomepage\": \"string\",\n \"hasConnections\": true,\n \"userRecommendations\": true,\n \"adminCanChangeProfileImage\": true,\n \"sendWelcomeMessageOnStatusActive\": true,\n \"defaultUserTypeIdAfterRegistration\": 42,\n \"guestUserTypeId\": 42,\n \"dateJoinedEqualsDateFullMember\": true,\n \"interestCustomFieldId\": 42,\n \"hasSkills\": true,\n \"hasAvailability\": true,\n \"notifyAdminsOfNewRegistrations\": true,\n \"notifyAdminsOnAccountDeactivation\": true,\n \"canReactivateAccountOnLogin\": true,\n \"retentionMonths\": 6,\n \"privatizeUserProfiles\": true,\n \"allowLocalAdminsToModifyUserPermissions\": true,\n \"defaultStatusForAdminRegistration\": \"ACTIVE\",\n \"nameDisplayLastNameFirst\": true,\n \"profileCompletionEnabled\": true,\n \"hasMergeProfiles\": true,\n \"passwordLoginByDefault\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Api-Token", "<api-key>")
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://app.orgo.space/api/v1/workspace-settings/users")
.header("Api-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"isActive\": true,\n \"hasUserTypes\": true,\n \"hasRoles\": true,\n \"hasProfileActivity\": true,\n \"congressionalDistrictTagging\": true,\n \"hasVolunteerRoles\": true,\n \"hasOrganisationalChart\": true,\n \"hasCardId\": true,\n \"childrenAuthRestrictionAge\": 1,\n \"childrenMinRegistrationAge\": 1,\n \"hasFamilyMembers\": true,\n \"hasManualApprove\": true,\n \"hasFullMembership\": true,\n \"hasFamilyNonMembers\": true,\n \"hasRegistrationForm\": true,\n \"hasListFieldAge\": true,\n \"hasMinorTag\": true,\n \"hasUserInvitation\": true,\n \"whoCanSendUserInvitation\": \"ROLE_USER\",\n \"whoCanSeeUserType\": \"USER\",\n \"whoCanFilterUsersByType\": \"USER\",\n \"seeMembersInGeneralUnitGroup\": \"USER\",\n \"seeMembersInLocalCenter\": \"USER\",\n \"customHomepage\": \"string\",\n \"anonymousHomepage\": \"string\",\n \"hasConnections\": true,\n \"userRecommendations\": true,\n \"adminCanChangeProfileImage\": true,\n \"sendWelcomeMessageOnStatusActive\": true,\n \"defaultUserTypeIdAfterRegistration\": 42,\n \"guestUserTypeId\": 42,\n \"dateJoinedEqualsDateFullMember\": true,\n \"interestCustomFieldId\": 42,\n \"hasSkills\": true,\n \"hasAvailability\": true,\n \"notifyAdminsOfNewRegistrations\": true,\n \"notifyAdminsOnAccountDeactivation\": true,\n \"canReactivateAccountOnLogin\": true,\n \"retentionMonths\": 6,\n \"privatizeUserProfiles\": true,\n \"allowLocalAdminsToModifyUserPermissions\": true,\n \"defaultStatusForAdminRegistration\": \"ACTIVE\",\n \"nameDisplayLastNameFirst\": true,\n \"profileCompletionEnabled\": true,\n \"hasMergeProfiles\": true,\n \"passwordLoginByDefault\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.orgo.space/api/v1/workspace-settings/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Api-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"isActive\": true,\n \"hasUserTypes\": true,\n \"hasRoles\": true,\n \"hasProfileActivity\": true,\n \"congressionalDistrictTagging\": true,\n \"hasVolunteerRoles\": true,\n \"hasOrganisationalChart\": true,\n \"hasCardId\": true,\n \"childrenAuthRestrictionAge\": 1,\n \"childrenMinRegistrationAge\": 1,\n \"hasFamilyMembers\": true,\n \"hasManualApprove\": true,\n \"hasFullMembership\": true,\n \"hasFamilyNonMembers\": true,\n \"hasRegistrationForm\": true,\n \"hasListFieldAge\": true,\n \"hasMinorTag\": true,\n \"hasUserInvitation\": true,\n \"whoCanSendUserInvitation\": \"ROLE_USER\",\n \"whoCanSeeUserType\": \"USER\",\n \"whoCanFilterUsersByType\": \"USER\",\n \"seeMembersInGeneralUnitGroup\": \"USER\",\n \"seeMembersInLocalCenter\": \"USER\",\n \"customHomepage\": \"string\",\n \"anonymousHomepage\": \"string\",\n \"hasConnections\": true,\n \"userRecommendations\": true,\n \"adminCanChangeProfileImage\": true,\n \"sendWelcomeMessageOnStatusActive\": true,\n \"defaultUserTypeIdAfterRegistration\": 42,\n \"guestUserTypeId\": 42,\n \"dateJoinedEqualsDateFullMember\": true,\n \"interestCustomFieldId\": 42,\n \"hasSkills\": true,\n \"hasAvailability\": true,\n \"notifyAdminsOfNewRegistrations\": true,\n \"notifyAdminsOnAccountDeactivation\": true,\n \"canReactivateAccountOnLogin\": true,\n \"retentionMonths\": 6,\n \"privatizeUserProfiles\": true,\n \"allowLocalAdminsToModifyUserPermissions\": true,\n \"defaultStatusForAdminRegistration\": \"ACTIVE\",\n \"nameDisplayLastNameFirst\": true,\n \"profileCompletionEnabled\": true,\n \"hasMergeProfiles\": true,\n \"passwordLoginByDefault\": true\n}"
response = http.request(request)
puts response.read_bodyChange the Users settings
Member profiles, registration, user types and roles, invitations, family links, profile visibility and account retention.
Dry-run and confirm with the person before changing: users.congressionalDistrictTagging, users.retentionMonths, users.passwordLoginByDefault.
Send only the settings to change; objects merge key by key, a list or a value replaces what was there, and null is a value (it does not delete). Returns the module after the change with changes (key, from, to) and effects.
curl --request PATCH \
--url https://app.orgo.space/api/v1/workspace-settings/users \
--header 'Api-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"isActive": true,
"hasUserTypes": true,
"hasRoles": true,
"hasProfileActivity": true,
"congressionalDistrictTagging": true,
"hasVolunteerRoles": true,
"hasOrganisationalChart": true,
"hasCardId": true,
"childrenAuthRestrictionAge": 1,
"childrenMinRegistrationAge": 1,
"hasFamilyMembers": true,
"hasManualApprove": true,
"hasFullMembership": true,
"hasFamilyNonMembers": true,
"hasRegistrationForm": true,
"hasListFieldAge": true,
"hasMinorTag": true,
"hasUserInvitation": true,
"whoCanSendUserInvitation": "ROLE_USER",
"whoCanSeeUserType": "USER",
"whoCanFilterUsersByType": "USER",
"seeMembersInGeneralUnitGroup": "USER",
"seeMembersInLocalCenter": "USER",
"customHomepage": "string",
"anonymousHomepage": "string",
"hasConnections": true,
"userRecommendations": true,
"adminCanChangeProfileImage": true,
"sendWelcomeMessageOnStatusActive": true,
"defaultUserTypeIdAfterRegistration": 42,
"guestUserTypeId": 42,
"dateJoinedEqualsDateFullMember": true,
"interestCustomFieldId": 42,
"hasSkills": true,
"hasAvailability": true,
"notifyAdminsOfNewRegistrations": true,
"notifyAdminsOnAccountDeactivation": true,
"canReactivateAccountOnLogin": true,
"retentionMonths": 6,
"privatizeUserProfiles": true,
"allowLocalAdminsToModifyUserPermissions": true,
"defaultStatusForAdminRegistration": "ACTIVE",
"nameDisplayLastNameFirst": true,
"profileCompletionEnabled": true,
"hasMergeProfiles": true,
"passwordLoginByDefault": true
}
'import requests
url = "https://app.orgo.space/api/v1/workspace-settings/users"
payload = {
"isActive": True,
"hasUserTypes": True,
"hasRoles": True,
"hasProfileActivity": True,
"congressionalDistrictTagging": True,
"hasVolunteerRoles": True,
"hasOrganisationalChart": True,
"hasCardId": True,
"childrenAuthRestrictionAge": 1,
"childrenMinRegistrationAge": 1,
"hasFamilyMembers": True,
"hasManualApprove": True,
"hasFullMembership": True,
"hasFamilyNonMembers": True,
"hasRegistrationForm": True,
"hasListFieldAge": True,
"hasMinorTag": True,
"hasUserInvitation": True,
"whoCanSendUserInvitation": "ROLE_USER",
"whoCanSeeUserType": "USER",
"whoCanFilterUsersByType": "USER",
"seeMembersInGeneralUnitGroup": "USER",
"seeMembersInLocalCenter": "USER",
"customHomepage": "string",
"anonymousHomepage": "string",
"hasConnections": True,
"userRecommendations": True,
"adminCanChangeProfileImage": True,
"sendWelcomeMessageOnStatusActive": True,
"defaultUserTypeIdAfterRegistration": 42,
"guestUserTypeId": 42,
"dateJoinedEqualsDateFullMember": True,
"interestCustomFieldId": 42,
"hasSkills": True,
"hasAvailability": True,
"notifyAdminsOfNewRegistrations": True,
"notifyAdminsOnAccountDeactivation": True,
"canReactivateAccountOnLogin": True,
"retentionMonths": 6,
"privatizeUserProfiles": True,
"allowLocalAdminsToModifyUserPermissions": True,
"defaultStatusForAdminRegistration": "ACTIVE",
"nameDisplayLastNameFirst": True,
"profileCompletionEnabled": True,
"hasMergeProfiles": True,
"passwordLoginByDefault": True
}
headers = {
"Api-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Api-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
isActive: true,
hasUserTypes: true,
hasRoles: true,
hasProfileActivity: true,
congressionalDistrictTagging: true,
hasVolunteerRoles: true,
hasOrganisationalChart: true,
hasCardId: true,
childrenAuthRestrictionAge: 1,
childrenMinRegistrationAge: 1,
hasFamilyMembers: true,
hasManualApprove: true,
hasFullMembership: true,
hasFamilyNonMembers: true,
hasRegistrationForm: true,
hasListFieldAge: true,
hasMinorTag: true,
hasUserInvitation: true,
whoCanSendUserInvitation: 'ROLE_USER',
whoCanSeeUserType: 'USER',
whoCanFilterUsersByType: 'USER',
seeMembersInGeneralUnitGroup: 'USER',
seeMembersInLocalCenter: 'USER',
customHomepage: 'string',
anonymousHomepage: 'string',
hasConnections: true,
userRecommendations: true,
adminCanChangeProfileImage: true,
sendWelcomeMessageOnStatusActive: true,
defaultUserTypeIdAfterRegistration: 42,
guestUserTypeId: 42,
dateJoinedEqualsDateFullMember: true,
interestCustomFieldId: 42,
hasSkills: true,
hasAvailability: true,
notifyAdminsOfNewRegistrations: true,
notifyAdminsOnAccountDeactivation: true,
canReactivateAccountOnLogin: true,
retentionMonths: 6,
privatizeUserProfiles: true,
allowLocalAdminsToModifyUserPermissions: true,
defaultStatusForAdminRegistration: 'ACTIVE',
nameDisplayLastNameFirst: true,
profileCompletionEnabled: true,
hasMergeProfiles: true,
passwordLoginByDefault: true
})
};
fetch('https://app.orgo.space/api/v1/workspace-settings/users', 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.orgo.space/api/v1/workspace-settings/users",
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([
'isActive' => true,
'hasUserTypes' => true,
'hasRoles' => true,
'hasProfileActivity' => true,
'congressionalDistrictTagging' => true,
'hasVolunteerRoles' => true,
'hasOrganisationalChart' => true,
'hasCardId' => true,
'childrenAuthRestrictionAge' => 1,
'childrenMinRegistrationAge' => 1,
'hasFamilyMembers' => true,
'hasManualApprove' => true,
'hasFullMembership' => true,
'hasFamilyNonMembers' => true,
'hasRegistrationForm' => true,
'hasListFieldAge' => true,
'hasMinorTag' => true,
'hasUserInvitation' => true,
'whoCanSendUserInvitation' => 'ROLE_USER',
'whoCanSeeUserType' => 'USER',
'whoCanFilterUsersByType' => 'USER',
'seeMembersInGeneralUnitGroup' => 'USER',
'seeMembersInLocalCenter' => 'USER',
'customHomepage' => 'string',
'anonymousHomepage' => 'string',
'hasConnections' => true,
'userRecommendations' => true,
'adminCanChangeProfileImage' => true,
'sendWelcomeMessageOnStatusActive' => true,
'defaultUserTypeIdAfterRegistration' => 42,
'guestUserTypeId' => 42,
'dateJoinedEqualsDateFullMember' => true,
'interestCustomFieldId' => 42,
'hasSkills' => true,
'hasAvailability' => true,
'notifyAdminsOfNewRegistrations' => true,
'notifyAdminsOnAccountDeactivation' => true,
'canReactivateAccountOnLogin' => true,
'retentionMonths' => 6,
'privatizeUserProfiles' => true,
'allowLocalAdminsToModifyUserPermissions' => true,
'defaultStatusForAdminRegistration' => 'ACTIVE',
'nameDisplayLastNameFirst' => true,
'profileCompletionEnabled' => true,
'hasMergeProfiles' => true,
'passwordLoginByDefault' => true
]),
CURLOPT_HTTPHEADER => [
"Api-Token: <api-key>",
"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.orgo.space/api/v1/workspace-settings/users"
payload := strings.NewReader("{\n \"isActive\": true,\n \"hasUserTypes\": true,\n \"hasRoles\": true,\n \"hasProfileActivity\": true,\n \"congressionalDistrictTagging\": true,\n \"hasVolunteerRoles\": true,\n \"hasOrganisationalChart\": true,\n \"hasCardId\": true,\n \"childrenAuthRestrictionAge\": 1,\n \"childrenMinRegistrationAge\": 1,\n \"hasFamilyMembers\": true,\n \"hasManualApprove\": true,\n \"hasFullMembership\": true,\n \"hasFamilyNonMembers\": true,\n \"hasRegistrationForm\": true,\n \"hasListFieldAge\": true,\n \"hasMinorTag\": true,\n \"hasUserInvitation\": true,\n \"whoCanSendUserInvitation\": \"ROLE_USER\",\n \"whoCanSeeUserType\": \"USER\",\n \"whoCanFilterUsersByType\": \"USER\",\n \"seeMembersInGeneralUnitGroup\": \"USER\",\n \"seeMembersInLocalCenter\": \"USER\",\n \"customHomepage\": \"string\",\n \"anonymousHomepage\": \"string\",\n \"hasConnections\": true,\n \"userRecommendations\": true,\n \"adminCanChangeProfileImage\": true,\n \"sendWelcomeMessageOnStatusActive\": true,\n \"defaultUserTypeIdAfterRegistration\": 42,\n \"guestUserTypeId\": 42,\n \"dateJoinedEqualsDateFullMember\": true,\n \"interestCustomFieldId\": 42,\n \"hasSkills\": true,\n \"hasAvailability\": true,\n \"notifyAdminsOfNewRegistrations\": true,\n \"notifyAdminsOnAccountDeactivation\": true,\n \"canReactivateAccountOnLogin\": true,\n \"retentionMonths\": 6,\n \"privatizeUserProfiles\": true,\n \"allowLocalAdminsToModifyUserPermissions\": true,\n \"defaultStatusForAdminRegistration\": \"ACTIVE\",\n \"nameDisplayLastNameFirst\": true,\n \"profileCompletionEnabled\": true,\n \"hasMergeProfiles\": true,\n \"passwordLoginByDefault\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Api-Token", "<api-key>")
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://app.orgo.space/api/v1/workspace-settings/users")
.header("Api-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"isActive\": true,\n \"hasUserTypes\": true,\n \"hasRoles\": true,\n \"hasProfileActivity\": true,\n \"congressionalDistrictTagging\": true,\n \"hasVolunteerRoles\": true,\n \"hasOrganisationalChart\": true,\n \"hasCardId\": true,\n \"childrenAuthRestrictionAge\": 1,\n \"childrenMinRegistrationAge\": 1,\n \"hasFamilyMembers\": true,\n \"hasManualApprove\": true,\n \"hasFullMembership\": true,\n \"hasFamilyNonMembers\": true,\n \"hasRegistrationForm\": true,\n \"hasListFieldAge\": true,\n \"hasMinorTag\": true,\n \"hasUserInvitation\": true,\n \"whoCanSendUserInvitation\": \"ROLE_USER\",\n \"whoCanSeeUserType\": \"USER\",\n \"whoCanFilterUsersByType\": \"USER\",\n \"seeMembersInGeneralUnitGroup\": \"USER\",\n \"seeMembersInLocalCenter\": \"USER\",\n \"customHomepage\": \"string\",\n \"anonymousHomepage\": \"string\",\n \"hasConnections\": true,\n \"userRecommendations\": true,\n \"adminCanChangeProfileImage\": true,\n \"sendWelcomeMessageOnStatusActive\": true,\n \"defaultUserTypeIdAfterRegistration\": 42,\n \"guestUserTypeId\": 42,\n \"dateJoinedEqualsDateFullMember\": true,\n \"interestCustomFieldId\": 42,\n \"hasSkills\": true,\n \"hasAvailability\": true,\n \"notifyAdminsOfNewRegistrations\": true,\n \"notifyAdminsOnAccountDeactivation\": true,\n \"canReactivateAccountOnLogin\": true,\n \"retentionMonths\": 6,\n \"privatizeUserProfiles\": true,\n \"allowLocalAdminsToModifyUserPermissions\": true,\n \"defaultStatusForAdminRegistration\": \"ACTIVE\",\n \"nameDisplayLastNameFirst\": true,\n \"profileCompletionEnabled\": true,\n \"hasMergeProfiles\": true,\n \"passwordLoginByDefault\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.orgo.space/api/v1/workspace-settings/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Api-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"isActive\": true,\n \"hasUserTypes\": true,\n \"hasRoles\": true,\n \"hasProfileActivity\": true,\n \"congressionalDistrictTagging\": true,\n \"hasVolunteerRoles\": true,\n \"hasOrganisationalChart\": true,\n \"hasCardId\": true,\n \"childrenAuthRestrictionAge\": 1,\n \"childrenMinRegistrationAge\": 1,\n \"hasFamilyMembers\": true,\n \"hasManualApprove\": true,\n \"hasFullMembership\": true,\n \"hasFamilyNonMembers\": true,\n \"hasRegistrationForm\": true,\n \"hasListFieldAge\": true,\n \"hasMinorTag\": true,\n \"hasUserInvitation\": true,\n \"whoCanSendUserInvitation\": \"ROLE_USER\",\n \"whoCanSeeUserType\": \"USER\",\n \"whoCanFilterUsersByType\": \"USER\",\n \"seeMembersInGeneralUnitGroup\": \"USER\",\n \"seeMembersInLocalCenter\": \"USER\",\n \"customHomepage\": \"string\",\n \"anonymousHomepage\": \"string\",\n \"hasConnections\": true,\n \"userRecommendations\": true,\n \"adminCanChangeProfileImage\": true,\n \"sendWelcomeMessageOnStatusActive\": true,\n \"defaultUserTypeIdAfterRegistration\": 42,\n \"guestUserTypeId\": 42,\n \"dateJoinedEqualsDateFullMember\": true,\n \"interestCustomFieldId\": 42,\n \"hasSkills\": true,\n \"hasAvailability\": true,\n \"notifyAdminsOfNewRegistrations\": true,\n \"notifyAdminsOnAccountDeactivation\": true,\n \"canReactivateAccountOnLogin\": true,\n \"retentionMonths\": 6,\n \"privatizeUserProfiles\": true,\n \"allowLocalAdminsToModifyUserPermissions\": true,\n \"defaultStatusForAdminRegistration\": \"ACTIVE\",\n \"nameDisplayLastNameFirst\": true,\n \"profileCompletionEnabled\": true,\n \"hasMergeProfiles\": true,\n \"passwordLoginByDefault\": true\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Server-to-server authentication. Generate a token in the admin UI at
Settings → Developers → API Access. Send the raw token in the
Api-Token header — there is no Bearer prefix.
Tokens can be marked read-only at creation time, in which case the API
rejects any non-GET request with 403 Forbidden.
Body
The settings to change
Adds an Activity tab to member profiles where staff leave notes and see a timeline of donations, form submissions, tags and note changes. Visible only to people with HR or Financial permission over that member, never to the member. Existing notes are kept if switched off.
Tags US members and contacts with their Congressional district (e.g. "District: TX-07"), looked up from their address whenever it changes. Each lookup spends Geocodio credits; members outside the US are left untagged. While on, every address change on a US member or contact triggers a paid Geocodio lookup and adds or replaces a district tag. Dry-run and confirm with the person first.
Adds a Skills custom field to member profiles, seeded with a predefined catalogue. Existing skill selections are kept if switched off. Switching it on creates a Skills custom field on member profiles, seeded with a catalogue, if none is set yet, and stores its id in users.skillsCustomFieldId.
Months after an account became inactive or was deleted before it is erased automatically: accounts with any history are anonymised, the rest deleted. Empty means off. The first run is 14 days after switching on; erasure cannot be undone. Switching it on stamps users.retentionEnabledAt; 14 days later a daily job starts anonymising or deleting accounts past the window, which cannot be undone. Switching it off clears the stamp. Dry-run and confirm with the person first.
6, 12, 24, 36, null Response
OK

