-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathfileuploadservice.apib
More file actions
49 lines (31 loc) · 1.39 KB
/
fileuploadservice.apib
File metadata and controls
49 lines (31 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FORMAT: 1A
HOST: http://upload.signifyd.com/
# File Upload Service
This is a simple file upload handler, specifically (at least for now) for PCI-sensitive documents and files.
## File Upload [/]
### Upload [POST]
Post multipart/form-data style body containing a file, "filename", "senstivity" flag (currently always 1) and investigation "caseId".
On success, this action returns a 200 status code with no body. On failure, an appropriate HTTP Status code is returned with a body explaining the problem.
*Fields*
file The file itself
filename A name for the file
sensitive 1 for PCI-sensitive document
caseId the investigation ID code
+ Request
+ Headers
Content-Type: multipart/form-data, boundary=mainBoundary
+ Body
Content-Type: multipart/form-data; boundary=mainBoundary
Content-Length: 387
-----------------------------mainBoundary
Content-Disposition: form-data; name="caseId"
12345678
-----------------------------mainBoundary
Content-Disposition: form-data; name="sensitive"
1
-----------------------------mainBoundary
Content-Disposition: form-data; name="file"; filename="filename.txt"
Content-Type: text/plain
Hello, World.
-----------------------------mainBoundary--
+ Response 200