Getting 404/blank response

We bought the self-hosting license recently, I spun-up the container and send out some requests. Not sure why getting a 404

This is what I am doing


import requests

headers = {
    'accept': 'multipart/form-data',
    'content-type': 'multipart/form-data; boundary=----WebKitFormBoundaryDCZOeYRyZRrwVxgV',

}

params = {
    'insertBlankColumnAtFirst': 'false',
    'minimizeTheNumberOfWorksheets': 'true',
    'uniformWorksheets': 'false',
}


file_path = 'slaes_report.pdf'  
with open(file_path, 'rb') as file:
    files = {
        'file': (file_path, file, 'application/pdf'),
    }

    response = requests.put('https://local_ip/pdf/convert/xlsx', params=params, headers=headers, files=files)

Am I doing something wrong?

I see, wee need to put the API version in the version

Thought it’d work this time but getting another error

import requests

headers = {
  'Accept': 'application/json'
}

file_path = 'sales_report.pdf'

with open(file_path, 'rb') as file:
    files = {
        'file': (file_path, file, 'application/pdf')
    }

    response = requests.post(
        'https://domain/v3.0/pdf/convert/xlsx',
        headers=headers,
        files=files
    )

Error: Incorrect file header

getting the same error for any pdf files I test

@SalimZavedKarim
Please use following headers in your request:

headers = {
  'Content-Type': 'application/pdf',
}

Thant worked, thank you so much!!