Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.

Sample POST multipart message

Log in to subscribe to topics and get notified when content changes.

Sample POST multipart message

This sample demonstrates a multipart POST message to the Attachment API.

Note that the file Content-Type value is defined within the file data.

POST /api/now/attachment/upload HTTP/1.1
Authorization: Basic YWRtaW46YWRtaW4=
Content-Type: multipart/form-data; boundary=WDCovLhyTgyWCrIdos2autXLLk8Qf8Pd
Host: <instance>.service-now.com
Connection: close
User-Agent: Paw/2.2.2 (Macintosh; OS X/10.10.3) GCDHTTPRequest
Content-Length: 425

--WDCovLhyTgyWCrIdos2autXLLk8Qf8Pd
Content-Disposition: form-data; name="table_name"

incident
--WDCovLhyTgyWCrIdos2autXLLk8Qf8Pd
Content-Disposition: form-data; name="table_sys_id"

efa6bb01cb30020035c7b967634c9c4c
--WDCovLhyTgyWCrIdos2autXLLk8Qf8Pd
Content-Disposition: form-data; name="f"; filename="sample.txt"
Content-Type: text/plain

test test test test test

--WDCovLhyTgyWCrIdos2autXLLk8Qf8Pd--
Feedback