Skip to main content

Connect

Connect apps, versions, and scripts used to build integrations with external systems.

📄️ Get Connect App Logs

Retrieves the log lines one Connect script (`scriptId`) wrote while it ran, oldest first, for example to confirm that a new install's script ran. Pass `installId` to see only that install's company's runs, which requires the `install:manage` permission on the install's company. Passing `appId` instead returns runs across every company, optionally narrowed with `companyId`, and is for Terros staff only. Pass `filter` to return only lines containing that exact text (case-sensitive), for example an error message; it works with `installId`, `appId` and `companyId`, and with `startTime` and `endTime` to set the time range. Defaults to the last 30 days; page with `nextToken`. A filtered page can hold fewer than `limit` lines, or none, while `nextToken` is still set, so keep paging until it is absent.

📄️ Update Connect App

Updates a Connect app such as its `name`, `description` or `status`. Only `appId` is required: send just the fields to change, and every field left out keeps its stored value. The app's owning company cannot be changed: a `companyId` other than the app's current one is rejected with `InvalidRequest`. Use `/connect/app/copy` to copy an app into another company. Requires the `app:manage` permission on the app's owning company. Setting `status` to `published` requires an approved marketplace review and a deployed, non-archived current version. The response's `uploadAvatarUrl` is a temporary URL: upload the app's logo image to it with an HTTP `PUT` and the image's `Content-Type`.