nextspace
    Preparing search index...

    Function SendData

    • Sends data to the API

      Parameters

      • urlSuffix: string

        The endpoint suffix to send data to.

      • payload: any

        The data payload to send in the request body.

      • OptionalaccessToken: string

        Optional access token to use for authorization.

      • OptionalfetchOptions: RequestInit

        Optional fetch options to customize the request.

      • method: string = "POST"

      Returns Promise<any>

      The response data from the API, or error information.