Both via the SKY API Console and trying to code it myself in Python leveraging RESTful commands, I am struggling to get a programmatic answer to attaching attachments to records, specifically constituents.
Here is the doc I am trying to reference:
The main issue is that when I do this, I need a poorly defined “file_id” parameter. I do not understand how this id would be gathered or generated. “The identifier of the file. Character limit: 36. For physical attachments only,” identifier of the file how? I need to pass in an image file so why would I need an ID and where would I get it?
I had tried to remedy this by uploading a file via the constituent “Document (Create)” call. Here I was able to get a status code of 200 and a returned file_id. When I would pass this newfound file_id from the document through the Constituent attachment (Create) file_id, I would enter a scan limbo with no attachments being attached.
I need help trying to navigate this issue that I assume is being generated from this mysterious - yet required - field.