mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	fix: Add Attachment endpoint to save file against automation rule (#4480)
Co-authored-by: fayazara <fayazara@gmail.com> Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
		@@ -9,6 +9,14 @@ class AutomationsAPI extends ApiClient {
 | 
			
		||||
  clone(automationId) {
 | 
			
		||||
    return axios.post(`${this.url}/${automationId}/clone`);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  attachment(file) {
 | 
			
		||||
    return axios.post(`${this.url}/attach_file`, file, {
 | 
			
		||||
      headers: {
 | 
			
		||||
        'Content-Type': 'multipart/form-data',
 | 
			
		||||
      },
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default new AutomationsAPI();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user