I’m trying to update an existing record by adding an attachment with a url that points to a remote jpg file. I’m getting the error “INVALID_ATTACHMENT_OBJECT”, which is not very helpful.
curl -v -X PATCH https://api.airtable.com/v0/applxOrnAao5mXXXfek/Table%201
-H “Authorization: Bearer xxx”
-H “Content-Type: application/json”
–data ‘{
“records”: /
{
“id”: “recySiYkz0crwyS5P”,
“fields”: {
“Notes”: “testing 1”,
“Attachments”: e
{
“id”: “1”,
“size”: 26317,
“url”: “https://www.filepicker.io/api/file/5YTJXioCQG0tYWPw6OPw”,
“type”: “image/jpeg”
}
]
}
}
]
}’
I’m relatively new to the API so perhaps it’s something I’ve overlooked.
Thanks