Skip to main content
GET
/
suggestions
/
collections
/
{collectionId}
/
schema
/
fields
Match fields
import requests

url = "https://{FUSION HOST}/api/suggestions/collections/{collectionId}/schema/fields"

response = requests.get(url)

print(response.json())
[
  {
    "name": "product_color",
    "docCount": 9999,
    "type": "string"
  },
  {
    "name": "product_title",
    "docCount": 9999,
    "type": "string"
  },
  {
    "name": "product_brand",
    "docCount": 9999,
    "type": "string"
  },
  {
    "name": "product_locale",
    "docCount": 9999,
    "type": "string"
  },
  {
    "name": "product_description",
    "docCount": 9999,
    "type": "string"
  }
]

Path Parameters

collectionId
string
required

The collection ID.

Query Parameters

q
string
required

A full or partial field name to match in the specified collection's schema.

limit
integer
default:20

Response

200 - */*

OK

name
string
docCount
integer
type
string