Attachment available on public URL but Airtable API not download image

I want to use Airtable API to upload images into attachment field. I have created public file storage (Minio), images have public access. I send URL of image to Airtable API in PATCH request.
Example PATCH body:

{
   "fields": {
        "Name": "randomName",
        "Images": [      --- Attachment field in Airtable
               {
                   "url": "https://someUrl:9000/attachments/J/IMAGE/upload_tmpfile_1608952265638459111199810539557_01a.jpg"
               }
         ]
   }
}

Response looks good but image is never downloaded from Minio to Airtable API.
Minio use self signed cert and IP (no domain name).
What is wrong?

I’m pretty sure a PATCH requires that you identify the record ID, right?

Hi. Yes, id is part of URL. Here is the line copied from Postman request
PATCH https://api.airtable.com/v0/appXXXXXXXXX/CUSTOMERS/rec33333333tOtY
where record ID is rec33333333tOtY.

To check if my way is ok I created a free account on Cloudinary, uploaded the image there and copied the image URL. In Postman I set ‘url’ to the Cloudinary image URL. Sent PATCH request. Image was downloaded by Airtable from Cloudinary URL and was visible in the Airtable web app. Also Airtbale API GET returns full attachment object.
New request with Cloudinary image URL:

{
   "fields": {
        "Name": "randomName",
        "Images": [      --- Attachment field in Airtable
               {
                   "url": "https://res.cloudinary.com/AAAAA/image/upload/v4646464664/01a_q2w9ph.jpg"
               }
         ]
   }
}

I think I have narrowed the problem. Can we use self signed cert with public attachment storages and is there any airtable config option to add exceptions for self signed certs?

I don’t believe this is possible - only fully public URLs are supported, but you should check with Airtable support.

This topic was solved and automatically closed 15 days after the last reply. New replies are no longer allowed.