This endpoint will accept a single file or a single directory. The request must include a read stream for the payload in order for the API to accept it.
Each upload can optionally include additional information beyond just the file. Both pinataOptions and pinataMetadata can be included in the request. Their formats are documented here.