Skip to content
Navigation

Preview, transfer or archive one legacy channel

Transfers ONE channel, named by channelId. dryRun: true reports the outcome without writing. Optional expectedSourceHash (64 hex characters) makes the transfer refuse a source that changed since it was read. archive: true takes the other exit: it archives a channel the producer REFUSES to transfer, storing that refusal on the row, and is itself refused for a channel that could still migrate.

POST
https://api.cloudraker.com/triggers/migrate-legacy-channels
Try it
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Request body JSON required

  • channelId
    string
    required
    maxLength: 200 · minLength: 1
  • dryRun
    boolean
    required
  • expectedSourceHash
    optional
    string
    pattern: ^[a-f0-9]{64}$
  • archive
    optional
    boolean

Returns

200

The producer record, proxied unchanged.

JSON
  • data
    object
    required
    • channelId
      string
      required
      maxLength: 200 · minLength: 1
    • status
      ready
      or
      migrated
      or
      blocked
      or
      archived
      required
    • handoffReady
      boolean
      required
    • triggerId
      optional
      string
      maxLength: 128 · pattern: ^trg_[A-Za-z0-9_-]+$
    • sourceHash
      optional
      string
      pattern: ^[a-f0-9]{64}$
    • message
      optional
      string
    • trigger
      optional
      object
      • name
        string
        required
        maxLength: 80 · minLength: 1
      • when
        required

        Any of the following:

        • Option 1

          One of the following:

          • object
            • kind
              schedule
              required
            • schedule
              required

              One of the following:

              • object
                • kind
                  cron
                  required
                • expression
                  string
                  required
                  maxLength: 200 · minLength: 1
                • timezone
                  string
                  required
                  maxLength: 100 · minLength: 1
              • object
                • kind
                  once
                  required
                • at
                  string
                  required
                  format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
          • object
            • kind
              email
              required
            • address
              string
              required
              format: email · maxLength: 254 · pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
            • from
              optional
              array of
              string
              format: email · pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
          • object
            • kind
              webhook
              required
            • slug
              string
              required
              pattern: ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$
          • object
            • kind
              manual
              required
        • object
          • kind
            webhook
            required
          • slug
            string
            required
          • secretPreview
            string
            required
      • open
        object
        required
        • agentIds
          array of
          string
          required
          maxLength: 128 · minLength: 1
        • spaces
          array of
          object
          required
          • spaceId
            string
            required
            maxLength: 128 · minLength: 1
          • access
            read
            or
            commit
            required
        • instruction
          string
          required
          maxLength: 4000 · minLength: 1
        • threadPolicy
          new
          or
          reuse
          required
        • filesFrom
          payload
          or
          none
          required
        • title
          optional
          string
          maxLength: 200
      • permissions
        object
        required
        • runAsUserId
          string
          required
          maxLength: 128 · minLength: 1
      • id
        string
        required
        maxLength: 128 · pattern: ^trg_[A-Za-z0-9_-]+$
      • nextRunAt
        string
        or null
        required
        format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
      • triggerRef
        string
        required
      • createdAt
        string
        required
        format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
      • updatedAt
        string
        required
        format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
      • enabled
        optional
        boolean
        default: true
      • lastRun
        optional
        object
        • status
          opened
          or
          busy
          or
          needs_input
          or
          blocked
          or
          error
          required
        • at
          string
          required
          format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
        • sessionId
          optional
          string
          maxLength: 128 · minLength: 1
        • message
          optional
          string
          maxLength: 1000
      • legacy
        optional
        object
        • channelId
          optional
          string
        • channelType
          optional
          email
          or
          webhook
        • automationId
          optional
          string

400

validation_failed: a request body field is invalid.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

403

forbidden — organization administrators only.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

409

handoff_incomplete — no readiness record covers this transfer yet.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

422

source_changed — the legacy source moved under the expected hash.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

Type to search…

↑↓ navigate↵ selectEsc close