Disclaimer: This website requires JavaScript to function properly. Some features may not work as expected. Please enable JavaScript in your browser settings for the best experience.

Dev Guide
Dev GuideUser GuidesLegal TermsGitHubDevCommunityOptimizely 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