Create Connection
Create a connection that runs an adapter on a gateway.
adapterIdis the ID of the adapter the connection runs, such aschromeleon-adapter. The adapter can’t be changed after the connection is created.gatewayIdis the API ID of a gateway (gtw_). The gateway can’t be changed after the connection is created.ownerIdis the API ID of an organization (ent_) you can read.adapterFieldsare keyed by the adapter’s field IDs.dataCatalogFolderIdmust be a folder you can add items to.associatedEquipmentIdsrequires the equipment feature, andautomationTemplateIdsrequires the connection integration feature.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
EARLY-ACCESS
Set to true to access beta operations via /api/v3.
Request
This endpoint expects an object.
adapterId
The ID of the adapter the connection uses.
gatewayId
The ID of the gateway the connection runs on.
name
The name of the connection. Cannot be blank.
ownerId
The API ID of the organization that owns the connection.
adapterFields
Values for the adapter's configuration fields, keyed by field ID.
associatedEquipmentIds
The API IDs of the equipment entities the connection is for. Each equipment entity can be associated with at most one unarchived connection.
automationTemplateIds
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.
dataCatalogFolderId
The API ID of the folder that files synced by the connection are saved to.
Response
Created
__typename
adapterId
The Adapter type this Connection uses, e.g. “chromeleon-adapter”. Cannot be changed after creation.
archiveReason
archived
associatedEquipment
Equipment entities associated with the Connection, such as the instrument it communicates with.
createdAt
creator
User who created the Connection.
dataCatalogFolder
Folder where data catalog items synced by this Connection are created. Null if not configured.
filesToSync
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.
gatewayId
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.
id
isFileBrowsing
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.
isFileSyncing
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.
modifiedAt
name
owner
User or Organization that owns the Connection.
status
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