Upload file - Creator API

Upload file - Creator API

I am trying to send a file to the creator using a java code through the API creator as shown in the link:
https://www.zoho.com/creator/help/api/rest-api/rest-api-upload-file.html # http_method

But all attempts are returning 500 error.

see the parameters sent with POST:

Url = https://creator.zoho.com/api/xml/fileupload/
applinkname = XXXXX
FromName Requisi_es
fieldname = teste_1
recordId = 836809000002270003 "
filename = filename.pdf
scope = creatorapi
and the file ...

tried to send with Content-Type = application / x-www-form-urlencoded and multipart / form-data
for all the ways that I try to send the file the return is http 500.

it is possible to send a file to the creator using their API?