---
agentTools:
  projectIndex: https://skytale.readme.io/llms.txt
---

# Get the preference array in response

Get list of preferences.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Skytale API",
    "description": "An API to manage all your corporate digital assets. Find out more at [skytale.finance](http://skytale.finance)",
    "termsOfService": "https://skytale.readme.io/",
    "contact": {
      "email": "hello@skytale.finance"
    },
    "license": {
      "name": "MPL 2.0",
      "url": "https://www.mozilla.org/en-US/MPL/2.0/"
    },
    "version": "1.0.0b"
  },
  "externalDocs": {
    "description": "Find out more about Skytale",
    "url": "http://skytale.finance"
  },
  "servers": [
    {
      "url": "/api/1",
      "description": "Allow for response validation in unit tests"
    },
    {
      "url": "https://api.skytale.finance/api/1",
      "description": "Production API"
    }
  ],
  "tags": [
    {
      "name": "default",
      "description": "Base functions",
      "externalDocs": {
        "description": "Find out more",
        "url": "https://skytale.readme.io/reference#default"
      }
    }
  ],
  "paths": {
    "/preferencetypes": {
      "get": {
        "tags": [
          "default"
        ],
        "security": [],
        "summary": "Get the preference array in response",
        "description": "Get list of preferences.",
        "operationId": "preference",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PreferenceType"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "example": "Error on login"
          }
        }
      },
      "PreferenceType": {
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "values": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "object"
                }
              ]
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 97,
      "1": 132,
      "2": 1,
      "3": 61,
      "4": 200,
      "5": 140,
      "6": 68,
      "7": 4,
      "8": 243,
      "9": 6,
      "10": 10,
      "11": 122
    }
  }
}
```