Function uploadTempFile

  • Upload a file as a temporary content resource. It returns a 201 Created with a location header that contains the location of the created resource. If filename or TTL is not properly set, a 400 Bad request is returned. For internal issues, a 500 Internal Server Error is returned.

    Parameters

    • query: { filename?: string; ttl?: number }

      an object with query parameters

      • Optionalfilename?: string

        The name of the file to upload.

      • Optionalttl?: number

        The TTL parameter is used to define the time-to-live for the content resource in seconds. It defaults to one hour (3600) if no input is provided. Max TTL is 259200 (3 days).'

    • body: BodyInit

      an object with the body content

    • Optionaloptions: ApiCallOptions

    Returns Promise<UploadTempFileHttpResponse>

    UploadTempFileHttpError