API DocsRESTRun service

CreateAutomaticRunAssociationForAssets

Associates a list of assets with a given run.

POST
/api/v2/runs/{runId}:create-automatic-run-association-for-assets

Request Body

application/jsonRequired

assetNames
Required
array<string>

A list of asset names to automatically associate with the run. Any data that is received for these assets will automatically added to the run. This applies even if the run has concluded, so long as the new data contains timestamps that are between the start_time and stop_time. If any of the assets are already associated with a different run whose run period (the period between start_time and end_time) overlaps with the requested run period, an error will be returned.

Path Parameters

runId
Required
string

The ID of the run to associate the asset with.

curl -X POST "<API_URL>/api/v2/runs/string:create-automatic-run-association-for-assets" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "assetNames": [
      "string"
    ]
  }'

A successful response.

{}