Skip to main content

The content type is form-data and we have the request body as follows:

 

const options = {

url: '',

method: '',

headers: {

'Content-Type': '',

'Accept': '',

'AccessKey': ''

},

params: {

'secureKey': ''

},

body: {

'username': 'Alex',

}

 

,we recieve this error: 

“message: Invalid organization key

messageType: Error”

 ,This means that the headers or the params are not read?, how can we solve such an issue and write the body request correctly?

And also how is it possible to script JSON inside a form-data parameter?