# /smartlists/{smartListId}/bulkoptions

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Formstack API v2025.0",
    "version": "0.0.4"
  },
  "servers": [
    {
      "url": "https://www.formstack.com/api/v2025",
      "description": "Production server"
    },
    {
      "url": "https://staging-formstack.com/api/v2025",
      "description": "Staging server"
    },
    {
      "url": "https://dev-formstack.com/api/v2025",
      "description": "Development server"
    }
  ],
  "paths": {
    "/smartlists/{smartListId}/bulkoptions": {
      "post": {
        "tags": [
          "Smart List Options"
        ],
        "operationId": "createBulkSmartListOptions",
        "parameters": [
          {
            "name": "smartListId",
            "in": "path",
            "description": "ID of the smart list to add options to",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "description": "Bulk smart list options data",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkSmartListOptionsInputApiDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Bulk options created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceIdDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid input data"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Smart List not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ResourceIdDto": {
        "title": "Resource Identifier",
        "description": "Contains the identifier of a resource after an operation",
        "properties": {
          "id": {
            "description": "The identifier of the resource",
            "type": "integer",
            "format": "int64",
            "example": 1
          }
        },
        "type": "object"
      },
      "BulkSmartListOptionsInputApiDto": {
        "title": "Bulk Smart List Options",
        "description": "Bulk Smart List Options request",
        "required": [
          "options"
        ],
        "properties": {
          "options": {
            "description": "Array of options to create",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateSmartListOptionInputApiDto"
            },
            "nullable": false
          }
        },
        "type": "object"
      },
      "CreateSmartListOptionInputApiDto": {
        "title": "Create Smart List Option",
        "description": "Create Smart List Option request",
        "required": [
          "label"
        ],
        "properties": {
          "label": {
            "description": "Label/display text of the option",
            "type": "string",
            "example": "Option 1",
            "nullable": false
          },
          "value": {
            "description": "Value of the option (if different from label)",
            "type": "string",
            "example": "option_1",
            "nullable": true
          },
          "sort": {
            "description": "Sort order of the option",
            "type": "integer",
            "example": 1,
            "nullable": true
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    {
      "name": "Smart List Options",
      "description": "Smart List Options are the individual entries that make up a Smart List. Use these endpoints to list a smart list's options, add, retrieve, update, and delete an option, clear all of a list's options, bulk-add a set of options to a list, and upload or remove an option's image."
    }
  ]
}
```