forked from PinataCloud/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpinata-api-v3-uploads.yaml
68 lines (68 loc) · 1.83 KB
/
pinata-api-v3-uploads.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
openapi: 3.0.0
info:
title: Private Files API
version: 1.0.0
servers:
- url: https://uploads.pinata.cloud/v3
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
security:
- bearerAuth: []
paths:
/files:
post:
tags:
- default
summary: Upload a File
requestBody:
content:
multipart/form-data:
schema:
type: object
required:
- file
properties:
file:
type: string
format: binary
description: File object you want to upload
name:
type: string
description: Add a custom name for the file
group_id:
type: string
description: ID of the group you would like to upload
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: string
name:
type: string
cid:
type: string
created_at:
type: string
size:
type: number
number_of_files:
type: number
mime_type:
type: string
user_id:
type: string
group_id:
type: string
is_duplicate:
type: boolean