Initiate Upload
Changed onInitiate a new file upload within the article. Either use the link property to point to an existing file that resides elsewhere and will not be uploaded to Figshare or use the other 3 parameters (md5, name, size).
Request
- Base URLhttps://api.figshare.com/v2
- AuthOAuth 2Authorization codehttps://figshare.com/account/applications/authorizeToken URLhttps://api.figshare.com/v2/tokenScopesall
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Article unique identifier
Query parameters
Page number. Used for pagination with page_size
The number of results included on a page. Used for pagination with page
Number of results included on a page. Used for pagination with query
Where to start the listing (the offset of the first result). Used for pagination with limit
Request body
Example request
{
"link": "http://figshare.com/file.txt",
"md5": "6c16e6e7d7587bd078e5117dda01d565",
"name": "test.py",
"size": 70,
"folder_path": "/level1/level2/level3"
}Response
Created
Changes
- breaking
added the new path request parameter
article_id - breaking
added required request body
- info
added the new optional
queryrequest parameterlimit - info
added the new optional
queryrequest parameteroffset - info
added the new optional
queryrequest parameterpage - info
added the new optional
queryrequest parameterpage_size - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- breaking
- info
added the new optional
queryrequest parameterlimitto all path's operations - info
added the new optional
queryrequest parameteroffsetto all path's operations - info
added the new optional
queryrequest parameterpageto all path's operations - info
added the new optional
queryrequest parameterpage_sizeto all path's operations
- info