Skip to navigation

Create Connection

Beta

Create a connection that runs an adapter on a gateway.

  • adapterId is the ID of the adapter the connection runs, such as chromeleon-adapter. The adapter can’t be changed after the connection is created.
  • gatewayId is the API ID of a gateway (gtw_). The gateway can’t be changed after the connection is created.
  • ownerId is the API ID of an organization (ent_) you can read.
  • adapterFields are keyed by the adapter’s field IDs.
  • dataCatalogFolderId must be a folder you can add items to.
  • associatedEquipmentIds requires the equipment feature, and automationTemplateIds requires the connection integration feature.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Headers

EARLY-ACCESSstringOptional

Set to true to access beta operations via /api/v3.

Request

This endpoint expects an object.
adapterIdstringRequired
The ID of the adapter the connection uses.
gatewayIdstringRequired
The ID of the gateway the connection runs on.
namestringRequired
The name of the connection. Cannot be blank.
ownerIdstringRequired
The API ID of the organization that owns the connection.
adapterFieldsmap from strings to stringsOptional
Values for the adapter's configuration fields, keyed by field ID.
associatedEquipmentIdslist of stringsOptional
The API IDs of the equipment entities the connection is for. Each equipment entity can be associated with at most one unarchived connection.
automationTemplateIdslist of stringsOptional

The API IDs of the automation templates run on files synced by the connection. Each template must have no data frame variables and exactly one config variable, keyed fileId or fileIds.

dataCatalogFolderIdstringOptional
The API ID of the folder that files synced by the connection are saved to.

Response

Created
__typenamestringOptional
adapterIdstringOptional

The Adapter type this Connection uses, e.g. “chromeleon-adapter”. Cannot be changed after creation.

archiveReasonstring or nullOptional
archivedbooleanOptional
associatedEquipmentstringOptionalformat: "uri"
Equipment entities associated with the Connection, such as the instrument it communicates with.
createdAtstringOptionalformat: "datetime"
creatorobject or nullOptional
User who created the Connection.
dataCatalogFolderobject or nullOptional
Folder where data catalog items synced by this Connection are created. Null if not configured.
filesToSyncinteger or nullOptional
Number of files the Adapter has identified to sync for this Connection. Null if the Adapter has not reported this value or the Instruments Service could not be reached.
gatewayIdstring or nullOptional

ID of the Gateway this Connection runs on, e.g. “gtw_8MSOq4Gf”. Cannot be changed after creation. Null if the Gateway couldn’t be loaded.

idstringOptional
isFileBrowsingboolean or nullOptional
Whether the Connection's Adapter supports browsing instrument files. If false, the Connection requests data directly through run fields instead. Null if the Instruments Service could not be reached.
isFileSyncingboolean or nullOptional
Whether the Connection automatically copies instrument data into Benchling. If false, files are only copied when a user requests them. Null if the Instruments Service could not be reached.
modifiedAtstringOptionalformat: "datetime"
namestringOptional
ownerobjectOptional
User or Organization that owns the Connection.
statusenumOptional
Current runtime status of the Connection, as reported by the Instruments Service. Null if the Instruments Service has not reported a status or could not be reached.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error