Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev Guide
Dev GuideUser GuidesLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

ODP Node SDK / Zaius / ApiV3 / request

request()

Signature

request<T>(
  method: HttpMethod,
  path: string,
  payload: undefined | Payload,
  options: RequestOptions = ...): Promise<HttpResponse<T>>;

Type parameters

Parameters

NameType
methodHttpMethod
pathstring
payloadundefined | Payload
optionsRequestOptions

Returns

Promise<HttpResponse<T>>

Defined in: src/Api/lib/ApiV3.ts:127