Update an app registration
const url = 'https://example.com/v1/connection-apps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"label":"example","oauth2":{"clientId":"example","clientSecret":{"envName":"example","name":"example"},"tenant":"example"},"githubApp":{"appNumber":1,"slug":"example","clientId":"example","clientSecret":{"envName":"example","name":"example"},"privateKey":{"envName":"example","name":"example"},"webhookSecret":{"envName":"example","name":"example"}},"token":{"provider":"telnyx","apiKey":{"envName":"example","name":"example"},"publicKey":"example"},"projects":["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://example.com/v1/connection-apps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "label": "example", "oauth2": { "clientId": "example", "clientSecret": { "envName": "example", "name": "example" }, "tenant": "example" }, "githubApp": { "appNumber": 1, "slug": "example", "clientId": "example", "clientSecret": { "envName": "example", "name": "example" }, "privateKey": { "envName": "example", "name": "example" }, "webhookSecret": { "envName": "example", "name": "example" } }, "token": { "provider": "telnyx", "apiKey": { "envName": "example", "name": "example" }, "publicKey": "example" }, "projects": [ "example" ] }'Changes the label, the client (or the provider account, token) or the projects that may use its connections. The app itself cannot change: register the other app on its own. A registration via: 'kindgi' has no client of its own: only its label and projects change. Tenant admins only.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Fields to change; absent fields are kept. The app itself cannot change. A registration via: 'kindgi' has no client of its own: only label and projects.
object
Responses
Section titled “Responses”The updated registration.
A workspace’s registration of an app: its own client there, or Kindgi’s own app (via). Secrets are references, never values.
object
Example
{ "via": "kindgi", "token": { "provider": "telnyx" }}Malformed body, unknown field or an app, including a token.provider the server doesn’t serve or a token.publicKey that isn’t base64 of 32 bytes (bad-input, details.field); a registration that doesn’t fit its entry, that would serve a project another registration of the app serves, or a change of its client (oauth2.clientId, oauth2.tenant, githubApp.appNumber, githubApp.clientId or token.provider) while it has live connections: disconnect them first (connection-app-invalid, details.field); a model provider’s key named as a secret (provider-key-refused); or a secret under the reserved kindgi. prefix (reserved-name-prefix). Or connection-key-refused: a secret it names is the account key of a texts connection app registration (details.secret, details.appId), which only that registration names. Use a key of its own: a new API key from the provider, stored under its own name. A copy of this one under another name reaches the same account. Or identity-provider-key-refused: a secret it names is an identity provider’s secret, an OIDC client secret or a SAML signing or decryption key (details.secret, details.identityProviderId), which only sign-in names. If one app registration serves both, give it a second secret of its own (a second client secret), store that under its own name and use that name.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Missing / malformed / expired / revoked bearer token.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Not a tenant admin (permission-denied). Without an authorization store, a tenant admin is the deployment’s API token, an admin key, or a console signed in with either.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No registration with that id (connection-app-not-found).
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Idempotency-Key was reused with a different body, or resource-state conflict. Or connection-key-in-use: token.apiKey names a secret that a tool (its current version), an MCP endpoint, a webhook endpoint, a webhook trigger, a destination or another connection app registration uses; details.secret names it and details.usedBy lists each (kind, id, a tool’s version). A texts registration’s key is used by its registration only: give the registration a new API key from the provider, stored under a name of its own. If the secret holds this account’s key, what uses it already reaches the whole account: rotate it at the provider. Nothing is stored. Or env-not-served: this runtime keeps every value under the env it serves (whoami’s servedEnv, with refusesOtherEnvs), and the secret reference names another. Name it under details.servedEnv. Nothing is stored. Or idempotency-key-in-flight (with Retry-After): a request with the same Idempotency-Key still runs, so this one wasn’t run; send it again after Retry-After to get that request’s answer.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”The request body is over the API’s limit (request-too-large; details.maxBytes says how much).
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}rate-limit-exceeded with details.limit: "api-requests", on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; Retry-After says when to send it again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”Server error (unmapped domain code or framework crash).
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The Idempotency-Key store (idempotency-store-unavailable) or the authorization store (authz-backend-unavailable) couldn’t be reached before the request ran, or the database was too busy for its authorization check (database-busy), so nothing was changed; Retry-After (whole seconds) says when to try again with the same key. Or tenant-state-unavailable (with Retry-After), on a runtime serving many workspaces: the workspace’s state couldn’t be read, so nothing was changed.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”See also
GET /v1/connection-apps/{appId}: Fetch an app registrationDELETE /v1/connection-apps/{appId}: Remove an app registration- Error code
authz-backend-unavailable - Error code
bad-input - Error code
connection-app-invalid - Error code
connection-app-not-found - Error code
connection-key-in-use - Error code
connection-key-refused - Error code
database-busy - Error code
env-not-served - Error code
idempotency-key-in-flight - Error code
idempotency-store-unavailable - Error code
identity-provider-key-refused - Error code
permission-denied - Error code
provider-key-refused - Error code
rate-limit-exceeded - Error code
request-too-large - Error code
reserved-name-prefix - Error code
tenant-state-unavailable - Every error code