Rename, or unlist
const url = 'https://api.sloose.com/orgs/org_9f3c/connectors/cnn_9f2a';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"label":"example","listed":true}'};
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/connectors/cnn_9f2a \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "label": "example", "listed": true }'Renames a connection, or changes whether it is listed to verified users of the CRM. Administrators only. Nothing here touches the credential: Disconnect does that. There is no default to make: the work names its connection (design §14.8).
Session only: managing connections takes a person, never an organisation’s API token (D5); a token still lists and uses them.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation id the session was issued for. A token for one organisation can never read another.
Example
org_9f3cThe organisation id the session was issued for. A token for one organisation can never read another.
The connector id, from the list.
Example
cnn_9f2aThe connector id, from the list.
Request Bodyrequired
Section titled “Request Bodyrequired”object
What the connection is called: “Production”, “Client A”, “Sandbox” — anything.
Whether a verified user of the CRM may be told this organisation holds it.
Examplegenerated
{ "label": "example", "listed": true}Responses
Section titled “Responses”The connection as it now stands.
object
object
The kind of system it connects: zoho_crm in this build. A row a later build wrote may name a kind this one does not know, and is returned as stored.
Source | destination | both
What people call it — the connected system’s own name for the account until an administrator renames it (for zoho_crm, the CRM’s company name).
Whether a verified user of the CRM may be told this organisation holds it and ask it for access. An administrator turns it off for an organisation that would rather not be listed.
The system’s own id for the account (for zoho_crm, the Zoho organisation id).
The system’s region or data centre, where it has one (for zoho_crm, the Zoho data centre).
A person’s own connection (design §14.6): theirs alone, never an API token’s, managed by nobody else — and never named to the CRM’s users, whatever listed says.
Whether it holds a usable credential, so the server can read the system with nobody present.
Ok | revoked | error, from the credential’s last use.
Whether the grant covers the records themselves, which an import searches and writes. A connection made before connecting asked for them holds sign-in’s scopes alone: it is connected, can be read, and needs reconnecting before an import can run through it.
Whether the system lets the grant ask its query API, by the system’s own answer to a query through it (for zoho_crm, Zoho’s): true once answered, false once refused for want of the permission (the connection then needs reconnecting, since the permission is asked at connect), null until something asked. Discovery asks it once.
Whether the system lets the grant read a module’s layouts, by its own answer: true once answered, false once refused for want of the permission (ZohoCRM.settings.layouts.READ), null until discovery asked, which it does only of a CRM that has a subform. A subform’s row limit and the columns its layout requires are unknown while it is false; reconnecting gives the permission. It never makes a connection needsReconnecting by itself.
Whether the system lets the grant upload a file for a file field, by its own answer: true once answered, false once refused for want of the permission (ZohoCRM.files.CREATE), null until discovery asked, which it does only of a CRM that has a file field. A file field cannot be imported into while it is false; reconnecting gives the permission (an attachment needs only the records permission and is not held by it). It never makes a connection needsReconnecting by itself.
Whether a refusal of this connection’s grant is most likely the system’s own cap on grants (#1852). For zoho_crm: Zoho keeps 20 live grants per person per client and silently ends the oldest when one more is made, and the person who granted this one has made that many since. Reconnecting it ends their oldest other connection in turn. False for a connection whose grant is not refused, or was refused for any other reason as far as Sloose can tell.
The modules whose field annotations a push from a configuration repository (POST /orgs/{org}/config/bundle, what sloose push sends) has written, each with when it last did; empty when none has. A push writes each of those modules’ annotations whole — and only those modules’ — so an alias added in the app on one of them is taken away by the next push that does not carry it, and one on any other module stays (a push still sets every module’s curation and excluded fields from its modules.json). Written with those annotations, never read from the audit.
object
The module’s CRM API name.
When a push last wrote its fields.
Whether the connection’s system has a file field an import can write (discovery found one, and it is not read-only). What decides whether the page offers “reconnect to import files”: a file field an import cannot write yet is nothing to reconnect for.
Whether the caller may change this connection’s field annotations, its aliases among them: true when the caller’s role, as this request settles it, is administrator. An API token acts at the lower of its own role and its creator’s (#239), and a read-only staff view writes nothing. False in the backoffice, which changes none.
Example
{ "connector": { "kind": "zoho_crm", "status": "active" }}The request — its body or its query — 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 no longer resolves: a session that is unknown or expired (code: AUTH_REQUIRED), or an API token that was revoked or expired (TOKEN_REVOKED, TOKEN_EXPIRED), whose organisation is gone (ORG_NOT_FOUND) or whose member or user row is (MEMBERSHIP_GONE).
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, it was issued for a different organisation, or it is an API token (SESSION_REQUIRED). Like every route behind a session: a session signed in but in no organisation is refused code: NO_ORG, a banned person code: BANNED, and a closed organisation code: ORG_CLOSED.
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 such connector, or it is not visible to this session.
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 restore switch is on (code: MAINTENANCE): every route but /health and /robots.txt is refused before anything is read, except the operator’s own POST /staff/people/{id}/delete with the ADMIN_TOKEN. Sloose is down for maintenance. Please try again in a few minutes.
object
Example
{ "code": "MAINTENANCE"}Headers
Section titled “Headers”Seconds until asking again is worth it (300 while the switch is on).