I am an absolute beginner with anything API so I’ve been trying to get some idea how it all works.
I’m testing a simple API call, which I first ran on postman.co and the request went through without any issues. But when I try to do the same in API Connector, initializing the call keeps failing with the following “invalid data”-error:
Raw response for the API
Status code 422
{“message”:“The given data was invalid.”,“code”:“INVALID_DATA”,“errors”:{“tasks”:[“The tasks field is required.”]}}
Since it works with Postman I assume I’m doing something wrong within API Connector. But after hours of trial&error and googling I still can’t figure out the exact problem. I was hoping that someone here might be able to give me some pointers?
This is the body I’m trying to send, following the CC documentation:
{
"tasks": {
"import-1": {
"operation": "import/url",
"url": "https://pawspin.bubbleapps.io/version-test/fileupload/box/921716867321/test-audio.wav"
},
"task-1": {
"operation": "convert",
"input_format": "wav",
"output_format": "mp3",
"engine": "ffmpeg",
"input": [
"import-1"
],
"audio_codec": "mp3",
"audio_qscale": 0
},
"export-1": {
"operation": "export/url",
"input": [
"task-1"
],
"inline": false,
"archive_multiple_files": false
}
},
"tag": "testing"
}
And these are my settings in API Connector: