Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class API
implements IAPI
import { API } from "https://deno.land/x/yextpages@pages%401.0.0-beta.10/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,
)