Thank you for your feedback.
Form temporarily unavailable. Please try again or contact 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>
Connection: close
User-Agent: Paw/2.2.2 (Macintosh; OS X/10.10.3) GCDHTTPRequest
Content-Length: 425

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

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

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

test test test test test