Collections

Attach a criterion to a moments collection

Changed on

Adds a criterion attachment and backfills existing members. The attach response charges nothing (cost header 0); per-file runs charge as they execute, and a matching prior run satisfies a pair at no extra execution.

post/collections/{collection_id}/moment-criteria

Request

  • Base URL
    https://api.cloudglue.dev/v1
  • Auth
    HTTP bearer

Path parameters

collection_idstring uuid required

Request body

signals_requiredstring[]
boundary_policy'sentence' | 'tight' | 'loose'
min_duration_secondsnumber
max_duration_secondsnumber

Response

The attachment, backfill pending.

attachment_idstring uuid required
criterion_namestring required
criterion_hashstring required
backfill_status'pending' | 'processing' | 'completed' | 'completed_with_failures' required
files_totalinteger
files_completedinteger
files_failedinteger
created_atinteger

Unix timestamp in milliseconds

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      endpoint added