articles
Create private link
Changed onCreate new private link for this article
post/account/articles/{article_id}/private_links
Request
- Base URLhttps://api.figshare.com/v2
- AuthOAuth 2Authorization codehttps://figshare.com/account/applications/authorizeToken URLhttps://api.figshare.com/v2/tokenScopesall
- TypeScripthttps://skmtc.dev/figshare/apis/figshare-api/docs/account/articles/:article_id/private_links/post.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
article_idinteger required
Article unique identifier
Request body
Example request
{
"expires_date": "2018-02-22 22:22:22"
}Response
Created
Example response
{
"html_location": "https://figshare.com/s/d5ec7a85bcd6dbe9d9b2",
"token": "d5ec7a85bcd6dbe9d9b2"
}Changes
- breaking
added the new path request parameter
article_id - info
added optional request body
- 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