LWT JavaScript API
    Preparing search index...
    • Make a PUT request to the API.

      Type Parameters

      • T

      Parameters

      • endpoint: string

        API endpoint

      • body: Record<string, unknown>

        Request body (will be JSON-stringified)

      Returns Promise<ApiResponse<T>>

      Promise resolving to ApiResponse with data or error

      const response = await apiPut<Term>('/terms/123', { translation: 'bonjour' });