oko-management
    Preparing search index...

    Function getCreateStandardizedResponse

    • Creates a new record in the API with standardized response handling.

      Type Parameters

      • T = any
      • U = any

      Parameters

      • apiUrl: string

        The URL of the API endpoint to create data from.

      • variables: T

        The variables object containing the data to be created.

      • OptionalvariablesFormatter: (variables: T) => U

      Returns Promise<{ data: any }>

      A promise that resolves to an object containing the created data.