Bubble · Arazzo Workflow

Bubble Search Then Delete a Thing

Version 1.0.0

Search a data type for a record matching a constraint and delete the first match.

1 workflow 1 source API 1 provider
View Spec View on GitHub No-CodeApplication PlatformDatabaseWorkflow-AutomationPluginsArazzoWorkflows

Provider

bubble

Workflows

search-then-delete-thing
Find a record by a field value and delete the first match.
Runs an equality search on a data type, and when at least one record matches it deletes the first result by id; otherwise it ends.
2 steps inputs: key, typename, value outputs: deletedId, matchedId
1
searchThings
searchThings
Search the data type for records where the supplied key equals the supplied value, returning at most one match.
2
deleteThing
deleteThing
Permanently delete the first matched record by its unique id.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Bubble Search Then Delete a Thing
  summary: Search a data type for a record matching a constraint and delete the first match.
  description: >-
    A find-then-act cleanup pattern for the Bubble Data API. The workflow
    searches a data type using a single equality constraint, branches on whether
    a match was found, and when one exists it permanently deletes that first
    matched record by id. When no record matches, the flow ends without deleting
    anything. Every step spells out its request inline so the flow can be read
    and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: dataApi
  url: ../openapi/_superseded/bubble-data-api-openapi.yml
  type: openapi
workflows:
- workflowId: search-then-delete-thing
  summary: Find a record by a field value and delete the first match.
  description: >-
    Runs an equality search on a data type, and when at least one record matches
    it deletes the first result by id; otherwise it ends.
  inputs:
    type: object
    required:
    - typename
    - key
    - value
    properties:
      typename:
        type: string
        description: Data type name in lowercase with spaces removed.
      key:
        type: string
        description: The field name to match on.
      value:
        type: string
        description: The value the field must equal.
  steps:
  - stepId: searchThings
    description: >-
      Search the data type for records where the supplied key equals the
      supplied value, returning at most one match.
    operationId: searchThings
    parameters:
    - name: typename
      in: path
      value: $inputs.typename
    - name: constraints
      in: query
      value: '[{"key":"$inputs.key","constraint_type":"equals","value":"$inputs.value"}]'
    - name: limit
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      matchedId: $response.body#/response/results/0/_id
    onSuccess:
    - name: matchFound
      type: goto
      stepId: deleteThing
      criteria:
      - context: $response.body
        condition: $.response.results.length > 0
        type: jsonpath
    - name: noMatch
      type: end
      criteria:
      - context: $response.body
        condition: $.response.results.length == 0
        type: jsonpath
  - stepId: deleteThing
    description: >-
      Permanently delete the first matched record by its unique id.
    operationId: deleteThing
    parameters:
    - name: typename
      in: path
      value: $inputs.typename
    - name: uid
      in: path
      value: $steps.searchThings.outputs.matchedId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      deletedId: $steps.searchThings.outputs.matchedId
  outputs:
    matchedId: $steps.searchThings.outputs.matchedId
    deletedId: $steps.deleteThing.outputs.deletedId

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/bubble-search-then-delete-thing-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.