Asana · Arazzo Workflow

Asana Build an Enum Custom Field With Options

Version 1.0.0

Create an enum custom field in a workspace and add two enum options to it.

1 workflow 1 source API 1 provider
View Spec View on GitHub CollaborationProductivityProject ManagementProjectTask ManagementTaskWorkflowsArazzoWorkflows

Provider

asana

Workflows

build-enum-custom-field
Create an enum custom field and add two options.
Creates an enum custom field, then adds two enum options to it.
3 steps inputs: fieldName, optionOneColor, optionOneName, optionTwoColor, optionTwoName, workspaceGid outputs: customFieldGid, optionOneGid, optionTwoGid
1
createField
Create the enum custom field in the workspace.
2
addOptionOne
Add the first enum option to the field.
3
addOptionTwo
Add the second enum option to the field.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Asana Build an Enum Custom Field With Options
  summary: Create an enum custom field in a workspace and add two enum options to it.
  description: >-
    A field-building flow. The workflow creates an enum custom field in a
    workspace and then adds two enum options to that field so it offers a set of
    selectable values. Each request is written inline so the field build can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: customFieldsApi
  url: ../openapi/asana-custom-fields-api-openapi.yml
  type: openapi
workflows:
- workflowId: build-enum-custom-field
  summary: Create an enum custom field and add two options.
  description: >-
    Creates an enum custom field, then adds two enum options to it.
  inputs:
    type: object
    required:
    - workspaceGid
    - fieldName
    - optionOneName
    - optionTwoName
    properties:
      workspaceGid:
        type: string
        description: Workspace gid the custom field is created in.
      fieldName:
        type: string
        description: Name of the enum custom field.
      optionOneName:
        type: string
        description: Name of the first enum option.
      optionOneColor:
        type: string
        description: Color of the first enum option (e.g. blue).
      optionTwoName:
        type: string
        description: Name of the second enum option.
      optionTwoColor:
        type: string
        description: Color of the second enum option (e.g. green).
  steps:
  - stepId: createField
    description: Create the enum custom field in the workspace.
    operationId: createCustomField
    requestBody:
      contentType: application/json
      payload:
        data:
          name: $inputs.fieldName
          resource_subtype: enum
          workspace: $inputs.workspaceGid
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      customFieldGid: $response.body#/data/gid
  - stepId: addOptionOne
    description: Add the first enum option to the field.
    operationId: createEnumOptionForCustomField
    parameters:
    - name: custom_field_gid
      in: path
      value: $steps.createField.outputs.customFieldGid
    requestBody:
      contentType: application/json
      payload:
        data:
          name: $inputs.optionOneName
          color: $inputs.optionOneColor
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      optionOneGid: $response.body#/data/gid
  - stepId: addOptionTwo
    description: Add the second enum option to the field.
    operationId: createEnumOptionForCustomField
    parameters:
    - name: custom_field_gid
      in: path
      value: $steps.createField.outputs.customFieldGid
    requestBody:
      contentType: application/json
      payload:
        data:
          name: $inputs.optionTwoName
          color: $inputs.optionTwoColor
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      optionTwoGid: $response.body#/data/gid
  outputs:
    customFieldGid: $steps.createField.outputs.customFieldGid
    optionOneGid: $steps.addOptionOne.outputs.optionOneGid
    optionTwoGid: $steps.addOptionTwo.outputs.optionTwoGid

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/asana-build-enum-custom-field-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.