Affinda · Arazzo Workflow

Affinda Create Enum Data Point and Populate Choices

Version 1.0.0

Create an enum-style data point on an extractor and replace its full set of choices.

1 workflow 1 source API 1 provider
View Spec View on GitHub Artificial IntelligenceDocument ProcessingIntelligent Document ProcessingIDPOCRResume ParsingInvoice ParsingReceipt ParsingDocument ExtractionDocument ClassificationDocument SplittingRecruitmentBankingInsuranceLogisticsHealthcareGovernmentArazzoWorkflows

Provider

affinda

Workflows

create-data-point-with-choices
Create a data point and replace its choices in bulk.
Creates a data point on the supplied extractor and then replaces all of its choices with the supplied list.
2 steps inputs: annotationContentType, choices, extractor, name, organization, slug outputs: dataPointIdentifier, result
1
createDataPoint
Create the data point on the extractor.
2
replaceChoices
Replace the data point's full set of choices so it behaves as a controlled vocabulary.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Affinda Create Enum Data Point and Populate Choices
  summary: Create an enum-style data point on an extractor and replace its full set of choices.
  description: >-
    Builds a dropdown-style field. A custom data point is created on an extractor,
    and its full list of selectable choices is replaced in one call so the field
    behaves like a controlled vocabulary. Every step spells out its request inline
    so the flow can be read and executed without opening the underlying OpenAPI
    description.
    Note: the data point and choice endpoints are marked deprecated in the v3
    specification but remain the documented way to author enum data points.
  version: 1.0.0
sourceDescriptions:
- name: deprecatedEndPointsApi
  url: ../openapi/affinda-deprecated-end-points-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-data-point-with-choices
  summary: Create a data point and replace its choices in bulk.
  description: >-
    Creates a data point on the supplied extractor and then replaces all of its
    choices with the supplied list.
  inputs:
    type: object
    required:
    - organization
    - extractor
    - name
    - slug
    - annotationContentType
    - choices
    properties:
      organization:
        type: string
        description: The organization identifier that owns the data point.
      extractor:
        type: string
        description: The extractor identifier the data point belongs to.
      name:
        type: string
        description: The name of the data point.
      slug:
        type: string
        description: A unique slug for the data point.
      annotationContentType:
        type: string
        description: The content type of the data point (typically enum for choices).
      choices:
        type: array
        description: The full set of choices to apply to the data point.
        items:
          type: object
  steps:
  - stepId: createDataPoint
    description: Create the data point on the extractor.
    operationId: createDataPoint
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.name
        slug: $inputs.slug
        annotationContentType: $inputs.annotationContentType
        organization: $inputs.organization
        extractor: $inputs.extractor
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      dataPointIdentifier: $response.body#/identifier
  - stepId: replaceChoices
    description: >-
      Replace the data point's full set of choices so it behaves as a controlled
      vocabulary.
    operationId: replaceDataPointChoices
    requestBody:
      contentType: application/json
      payload:
        dataPoint: $steps.createDataPoint.outputs.dataPointIdentifier
        organization: $inputs.organization
        choices: $inputs.choices
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      result: $response.body
  outputs:
    dataPointIdentifier: $steps.createDataPoint.outputs.dataPointIdentifier
    result: $steps.replaceChoices.outputs.result

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/affinda-create-data-point-with-choices-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.