Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class API
implements IAPI
import { API } from "https://deno.land/x/yextpages@pages@1.0.0-beta.16/slugManager/api.ts";

Constructors

new
API(apiKey: string, config: { v?: string; env?: "sandbox" | "production"; })

Properties

apiKey: string
baseUrl: string
v: string

Methods

constructRequestUrl(path: string, additionalParams?: URLSearchParams)
listEntities<EntityType = BaseEntity>(additionalParams?: URLSearchParams)
savedSearchesIncludeEntity(searchIds: string[], entityId: string)
updateField<EntityType = BaseEntity>(
id: string,
locale: string,
field: string,
value: string,
)