Onfleet · Arazzo Workflow

Onfleet Clone and Force-Complete Task

Version 1.0.0

Read a task, clone it for a redelivery, then force-complete the original.

1 workflow 1 source API 1 provider
View Spec View on GitHub Last Mile DeliveryLogisticsFleet ManagementDispatchRoute OptimizationCouriersDriversTrackingGeocodingWebhookArtificial IntelligenceSoftware-as-a-ServiceArazzoWorkflows

Provider

onfleet

Workflows

clone-and-complete-task
Clone a task for redelivery and force-complete the original.
Reads a task, clones it to queue a redelivery, and force-completes the original task with a failure note.
3 steps inputs: notes, success, taskId outputs: clonedTaskId, originalTaskId
1
getOriginalTask
Read the original task to capture its details before cloning.
2
cloneTask
Clone the original task to queue a fresh redelivery attempt.
3
completeOriginal
Force-complete the original task with the supplied outcome and notes.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Onfleet Clone and Force-Complete Task
  summary: Read a task, clone it for a redelivery, then force-complete the original.
  description: >-
    Handles a failed delivery by spawning a redelivery and closing out the
    original. The workflow reads an existing task to capture its details, clones
    it so a fresh task is queued for another attempt, and then force-completes
    the original task with a failure note so it leaves the active queue. Every
    step spells out its request inline so the flow can be read and executed
    without opening the underlying OpenAPI descriptions.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-2420.40
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-2420.40
      capability_name: Last-Mile Delivery Operations Management
      spec: onfleet-tasks-api-openapi.yml
      confidence: 0.8
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: tasksApi
  url: ../openapi/onfleet-tasks-api-openapi.yml
  type: openapi
workflows:
- workflowId: clone-and-complete-task
  summary: Clone a task for redelivery and force-complete the original.
  description: >-
    Reads a task, clones it to queue a redelivery, and force-completes the
    original task with a failure note.
  inputs:
    type: object
    required:
    - taskId
    properties:
      taskId:
        type: string
        description: The id of the original task to clone and complete.
      success:
        type: boolean
        description: Whether the original task should be marked successful on completion.
      notes:
        type: string
        description: Completion notes recorded against the original task.
  steps:
  - stepId: getOriginalTask
    description: Read the original task to capture its details before cloning.
    operationId: getTask
    parameters:
    - name: taskId
      in: path
      value: $inputs.taskId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      shortId: $response.body#/shortId
      state: $response.body#/state
  - stepId: cloneTask
    description: Clone the original task to queue a fresh redelivery attempt.
    operationId: cloneTask
    parameters:
    - name: taskId
      in: path
      value: $inputs.taskId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      clonedTaskId: $response.body#/id
  - stepId: completeOriginal
    description: Force-complete the original task with the supplied outcome and notes.
    operationId: forceCompleteTask
    parameters:
    - name: taskId
      in: path
      value: $inputs.taskId
    requestBody:
      contentType: application/json
      payload:
        completionDetails:
          success: $inputs.success
          notes: $inputs.notes
    successCriteria:
    - condition: $statusCode == 200
  outputs:
    originalTaskId: $inputs.taskId
    clonedTaskId: $steps.cloneTask.outputs.clonedTaskId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/onfleet-clone-and-complete-task-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.