AnsweredAssumed Answered

Data API connection failed when uploading container field

Question asked by KevinMortimer on Nov 8, 2018
Latest reply on Nov 8, 2018 by mdenyse

I am using data api to create a record then using that record id upload a file to the newly created record. I am able to get a token and create the the new record but when i try upload the container to the newly created record i get an error 1631 connection failed. Not sure what the problem is as i have already connected successfully to get the token and to create the record.

 

url = https://[[serverName]]/fmi/data/v1/databases/fiscus%20Warehouse/layouts/API_Scans/records/22/containers/image/1

curl options =

-X POST

--header "Content-Type: multipart/form-data"

--header "Authorization: Bearer 74baf4bdd96f26c9db56a86322e2f5f334e9fdea183431b3042"

-f upload=@$_file;filename=Hydrangeas.jpg

 

$_file is set to the container field

Outcomes