Upload
json
Upload a JSON object to Pinata
Usage
Returns
Parameters
JSON
- Type:
Record<string, unknown>
Accepts an object that is turned into JSON
group (Optional)
- Type:
string
Upload to a specific group by passing in the groupId
addMetadata (Optional)
- Type: PinataMetadata
Add optional metadata to file
vectorize (Optional)
The file vectors feature is still in beta. Please contact the team at [email protected] if you have any issues.
- Type:
null
Vectorize a file on upload, requires a group to be used as well.
url (Optional)
- Type:
string
Pass in a presigned upload URL created with createSignedURL
key (Optional)
- Type:
string
Upload a file using a secondary API key generated through keys.create()