Skip to navigation

Update Connection

Beta

Update a connection, or archive or unarchive it.

Omitted fields are left unchanged. Setting associatedEquipmentIds or automationTemplateIds replaces the connection’s equipment or automation template associations.

To archive a connection, set archived to true and provide an archiveReason. To unarchive a connection, set archived to false and omit archiveReason. A connection can’t be unarchived while any of its equipment is associated with another unarchived connection.

Archiving or unarchiving a connection also archives or unarchives it in the service that runs connections on their gateways, which also stores its adapter fields and enabled state.

Authentication

AuthorizationBearer

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

Path parameters

connection_idstringRequired
ID of the Connection.

Headers

EARLY-ACCESSstringOptional

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

Request

This endpoint expects an object.
adapterFieldsmap from strings to nullable stringsOptional

Values for the adapter’s configuration fields, keyed by field ID. Fields that aren’t included are left unchanged, and a field set to null is cleared.

archiveReasonstringOptional

Why it is being archived. Required when archived is true, and not allowed when unarchiving.

archivedbooleanOptional

Set to true to archive or false to unarchive it. Archiving requires archiveReason.

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.
isEnabledbooleanOptional
Whether the connection is enabled. A disabled connection doesn't run on its gateway.
namestringOptional
The name of the connection. Cannot be blank.

Response

OK
__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