Skip to content

Change org settings

PATCH
/orgs/{org}/config/settings
curl --request PATCH \
--url https://api.sloose.com/orgs/org_9f3c/config/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "dateFormat": "DMY", "expressionContext": "example", "aiSamples": "allow", "followZohoRoles": true, "apiDelayMs": 1, "systemExcludedFields": [ "example" ], "name": "example" }'

Every field is optional; only what you send changes. Changing anything bumps registryVersion.

org
required

The org id the session was issued for. A token for one org can never read another.

string
Example
org_9f3c

The org id the session was issued for. A token for one org can never read another.

Media typeapplication/json
object
dateFormat
string
Allowed values: DMY MDY YMD
expressionContext
string
/^[A-Za-z_$][\w$]*$/
aiSamples
string
Allowed values: allow masked deny
followZohoRoles

Derive a member’s role from their CRM profile at sign-in.

boolean
apiDelayMs

Minimum gap between destination writes, in milliseconds.

integer | null
systemExcludedFields

Destination system fields hidden from mapping, on top of each module’s own.

Array<string> | null
name
string
>= 1 characters

Applied.

Media typeapplication/json
object
ok
required
boolean
registryVersion
required
number
Example
{
"ok": true
}

The request body did not match the schema. issues carries the Zod issue list.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

No bearer, or one that is expired, revoked or no longer resolves to a member.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

The bearer’s role is too low, or it was issued for a different org.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}