How to add form-data on httpRequest?

How can I translate this cURL request to a Parse.Cloud.httpRequest?

curl --request POST \
  --url https://api.thehive.ai/api/v2/task/sync \
  --header 'accept: application/json' \
  --header 'authorization: token <API_KEY>' \
  --form 'url=http://hive-public.s3.amazonaws.com/demo_request/gun1.jpg'

I tried this but it throws an error;

Parse.Cloud.httpRequest({
     method: "POST",
     url: "https://api.thehive.ai/api/v2/task/sync",
     headers: {
          authorization: `token ${visualModerationToken}`,
          accept: "application/json"
     },
     params: {
		url: "http://hive-public.s3.amazonaws.com/demo_request/gun1.jpg"
     },
     success: function(httpResponse) {
     },
     error: function(error) {
     }
})

I’ve also tried this;

Parse.Cloud.httpRequest({
     method: "POST",
     url: "https://api.thehive.ai/api/v2/task/sync",
     headers: {
          authorization: `token ${visualModerationToken}`,
          accept: "application/json"
     },
     body: {
		form: {
            url: "http://hive-public.s3.amazonaws.com/demo_request/gun1.jpg"
        }
	 },
     success: function(httpResponse) {
     },
     error: function(error) {
     }
})

The issue is with how I pass the url parameter. Any ideas?

What’s the error that you have?

HTTPResponse {
  status: 400,
  headers: 
   { 'content-type': 'application/json; charset=utf-8',
     'content-length': '108',
     date: 'Wed, 08 Sep 2021 15:15:29 GMT',
     'x-request-id': '21dcfbba-a1ef-4c81-86d8-60d7ddd13311',
     connection: 'close' },
  cookies: undefined,
  buffer: <Buffer 7b 22 72 65 74 75 72 6e 5f 63 6f 64 65 22 3a 34 30 30 2c 22 6d 65 73 73 61 67 65 22 3a 22 4e 6f 20 69 6d 61 67 65 20 6f 72 20 74 65 78 74 20 77 61 73 ... >,
  text: [Getter],
  data: [Getter] }

Try with body instead of params

You are a legend!!! Thank you!