Set Attachment Filename with the Airtable API (PATCH)

  • 12 March 2022
  • 0 replies

Userlevel 7
Badge +14

Set Attachment Filename with the Airtable API (PATCH)



Use the Airtable API to make a PATCH Request that will set the filename for a new file in an Attachment type field.



  1. Get your Airtable API Key:
  2. Get your Airtable Base ID:
  3. Get your Attachment type field name.
    1. NOTE: If you change the name of the Attachment field, then the Zap will break.



  1. This can only be used to create new files in an Attachment type field.
    1. Cannot update existing Attachment file names.
  2. This will replace existing files in the Attachment field.
  3. Review help article with how to send files in Zaps:



  1. For the Action step App, use Webhooks:
  2. For the Action step Event, use the Custom Request option
  3. Set the Method to PATCH
  4. In the URL
    1. Replace [APP_ID] with your Base ID
    2. Replace [RECORD_ID] with your Record ID
  5. In the Data
    1. Replace [FILE_URL] with the file link or file object
    2. Replace [FILE_NAME] with the filename
  6. In the Headers
    1. Replace [API_KEY] with your API Key
  7. Leave all other fields set to their default values (these may be empty)



"fields": {
"Attachments": [{
"url": "[FILE_URL]",
"filename": "[FILE_NAME]"



Make sure to test and verify the results.



Use an Formula field to extract the file name from attachments.


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.