Change the name, language or policies (org.manage). SSO comes later.
const url = 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","defaultLocale":"es-MX","settings":{"require_mfa":true,"session_max_hours":1,"approvals":{"additionalProperty":"example"},"shared_suppression":true,"ip_allowlist":["example"],"api_key_max_days":1,"mcp":{"enabled":true,"allowed_clients":["known"],"max_scopes":["read"]},"ai":{"enabled":true,"allowed_providers":["anthropic"],"contact_data":"full"}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000 \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "defaultLocale": "es-MX", "settings": { "require_mfa": true, "session_max_hours": 1, "approvals": { "additionalProperty": "example" }, "shared_suppression": true, "ip_allowlist": [ "example" ], "api_key_max_days": 1, "mcp": { "enabled": true, "allowed_clients": [ "known" ], "max_scopes": [ "read" ] }, "ai": { "enabled": true, "allowed_providers": [ "anthropic" ], "contact_data": "full" } } }'require_mfa, session_max_hours, ip_allowlist, api_key_max_days, approvals, ai and mcp can only be changed by an owner (403 owner_required). An ip_allowlist that does not include the IP of the person saving it is rejected (400 ip_allowlist_self_lockout). Turning on settings.approvals.contacts_export is rejected (400 approval_action_not_available) until export goes through approvals (DAT-2967).
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
org_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”object
object
object
object
object
Responses
Section titled “Responses”Organization updated
object
object
Example
{ "kind": "company"}Policy change pending: someone else must approve it (rule approvals.security_policy_change); nothing was applied
object
Brand of the action; null if it applies to the whole organization.
executed: approved and the action took place; failed: approved but the action failed (see failureCode); expired: 72 h passed without a decision.
What the approver sees (no secrets).
object
Person (usr_…) or API key (key_…) that requested it.
Error code of the action when it ended up failed.
People who can decide it (excluding the requester). 0: the dashboard suggests inviting someone. Null if it is no longer pending and in listings (computed when it is requested and when it is fetched).
Example
{ "action": "security_policy_change", "status": "pending", "requestedSource": "panel"}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}