REST API Attachment

 
Author
Message
SysAider
11
 
Hey everyone,

Can anyone tell me please how can I make a attachment request through REST API?

I am using the /sr/{id}/attachment url to add a new attachment to a service record.

Thanks in advance.
SysAider
1
 
Same here please.
SysAider
1
 
Has there been any update on this? I'm having the same problem.
SysAider
5
 
I have attached a screenshot of how I was able to do it using Postman.

Here are the highlights.
URL: /sr/{id}/attachment

Add a header:
Key: Content-Disposition
Value: multipart/form-data

The request body needs to be set to "form-data"
Add a file to the body using the below.
Key: file
Value: [attached the file here]
Content Type: The Content Type that matches your file.

Hope that helps!
SysAider
11
 
JHamblen wrote:I have attached a screenshot of how I was able to do it using Postman.

Here are the highlights.
URL: /sr/{id}/attachment

Add a header:
Key: Content-Disposition
Value: multipart/form-data

The request body needs to be set to "form-data"
Add a file to the body using the below.
Key: file
Value: [attached the file here]
Content Type: The Content Type that matches your file.

Hope that helps!


Hi JHamblen!

You solved my problem! It worked!

Thank you, very very much!