Lists

Create a dropdown option for a List Field

Changed on
⚠️ This endpoint is currently in BETA

Create a dropdown option for a List Field.

Note: Creating dropdown options on status fields is not yet supported. Requests where fieldId refers to a status field will return a 400 error.

post/v2/lists/{listId}/fields/{fieldId}/dropdown-options

Request

  • Base URL
    https://api.affinity.co
  • URL
    https://api.affinity.co/v2/lists/{listId}/fields/{fieldId}/dropdown-options
  • Auth
    HTTP bearer

Path parameters

listIdinteger required

List ID

fieldIdstring required
Example:field-1234

Field ID

Request body

OR

Example request

{
  "type": "dropdown",
  "text": "Seed"
}

Response

Created

OR

Example response

{
  "id": 1,
  "text": "Active"
}

Changes

    • breaking

      removed from the request body oneOf list

    • info

      added dropdown ranked-dropdown mapping keys to the request discriminator

    • info

      added dropdown ranked-dropdown mapping keys to the response discriminator for the response status

    • info

      removed from the response body oneOf list for the response status

    • info

      added authentication authorization bad-request conflict method-not-allowed not-acceptable not-found not-implemented rate-limit server timeout unprocessable-entity unsupported-media-type validation discriminator mapping keys to the / response property for the response status

    • info

      added bad-request validation discriminator mapping keys to the / response property for the response status