Change org settings
const url = 'https://api.sloose.com/orgs/org_9f3c/config/settings';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"dateFormat":"DMY","expressionContext":"example","aiSamples":"allow","followZohoRoles":true,"apiDelayMs":1,"systemExcludedFields":["example"],"name":"example"}'};
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.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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The org id the session was issued for. A token for one org can never read another.
Example
org_9f3cThe org id the session was issued for. A token for one org can never read another.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Derive a member’s role from their CRM profile at sign-in.
Minimum gap between destination writes, in milliseconds.
Destination system fields hidden from mapping, on top of each module’s own.
Responses
Section titled “Responses”Applied.
object
Example
{ "ok": true}The request body did not match the schema. issues carries the Zod issue list.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}No bearer, or one that is expired, revoked or no longer resolves to a member.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}The bearer’s role is too low, or it was issued for a different org.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}