Step 1: Obtain the field ID
First, find the Workflow that contains the Attachment field:id — this is the FIELD_ID used in
the next step. See Viewing Fields for more on
retrieving field metadata.
Step 2: Upload a file
Submit the file asmultipart/form-data:
id, file metadata, and version count:
id from this response — you’ll need it to link the file to a record.
Step 3: Attach the file to a record
Build a request body referencing the attachment from Step 2 and the target Attachment field, then submit it against the record:Step 4: Version an existing attachment (optional)
To upload a new version of a file that’s already attached, submit the updated file to:versionCount increments automatically. Because the attachment already exists on
the record, Step 3 is not needed when versioning.