Create a search profile
Creates a new search profile (scope, searchable fields, displayed fields, facets, sort, limits, boosted/featured contents). Rejects a duplicate slug with 400. Optionally marks the new profile as the site's default.
/search/profileshttps://api.lynkow.com/v1Request bodyrequired
namestringrequiredRequired. Display name. 1-200 characters
slugstringrequiredRequired. URL-friendly identifier, unique per site and locale. 1-100 characters
sortarray<string>Max 10 characters. Array of strings
scopeobjectexcludeIdsarray<string>includeIdsarray<string>excludeTagsarray<string>includeTagsarray<string>metaFiltersarray<object>openumrequiredOne of:
=!=innotInkeystringrequiredvalueany
excludeTypesarray<string>includeTypesarray<string>excludeLocalesarray<string>includeLocalesarray<string>excludeCategoriesarray<string>includeCategoriesarray<string>includePathPrefixesarray<string>
facetsarray<string>Max 20 characters. Array of strings
isPublicbooleanWhether this search profile is exposed on the public storefront search API. Boolean
maxLimitnumberBetween 1 and 500
isDefaultbooleanBoolean
descriptionunionDescription text
defaultLimitnumberBetween 1 and 100
displayedFieldsarray<string>Min 1 character. Array of strings
searchableFieldsarray<enum>Min 1 character. Array of strings
boostedContentIdsarray<string>Content UUIDs to rank higher in results (max 100). Max 100 characters. Array of strings
featuredContentIdsarray<string>Content UUIDs pinned to the top of results regardless of relevance (max 100). Max 100 characters. Array of strings