LinkLabelUsage

Update a database connection's Link labels

Changed on

Replaces only the given Link labels (deduplicated) of the connection's default connection properties and of the overrides matched by environment_id, keeping each deprecated link_agent_label equal to the first label. Omitted labels and unmatched overrides are unchanged; no other field changes.

patch/database/connections/{connection_id}/link

Request

  • Base URL: https://api.mabl.com
  • URL: https://api.mabl.com/database/connections/{connection_id}/link
  • Auth: one of:
    • HTTP basic
    • API key in header Authorization

Path parameters

connection_idstring required

The ID of the database connection

Headers

If-Matchstring

The version from the label usage or database connection being updated. Functionally required: omitting it returns 428. Declared optional so a missing header reaches the service instead of failing schema validation with a generic 400.

Request body

link_agent_labelsstring[]

New labels for the default connection properties; unchanged when omitted

Response

The database connection's updated Link label usage

entity_type'environment' | 'database_connection'
idstring

Environment or database connection ID

workspace_idstring

Workspace ID

namestring

Environment or database connection name

use_link_agentboolean

Environments only - whether test traffic routes through Link

link_agent_labelsstring[]

Environment labels, or the database connection's default connection property labels. Absent when none are stored.

versionstring

The entity version, to send as If-Match when updating these labels

Changes