{ "opencollection": "1.0.0", "info": { "name": "Loughborough Research Repository (figshare API) altmetric profiles API", "version": "2.0" }, "items": [ { "info": { "name": "profiles", "type": "folder" }, "items": [ { "info": { "name": "Update public profile", "type": "http" }, "http": { "method": "PUT", "url": "https://api.figshare.com/v2/account/profile", "params": [ { "name": "user_id", "value": "", "type": "query", "description": "User ID" }, { "name": "institution_user_id", "value": "", "type": "query", "description": "Institutional user ID" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://figshare.com/account/applications/authorize", "accessTokenUrl": "https://api.figshare.com/v2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Updates the fields of the user's public profile." }, { "info": { "name": "Update public profile picture", "type": "http" }, "http": { "method": "POST", "url": "https://api.figshare.com/v2/account/profile/:user_id/picture", "params": [ { "name": "user_id", "value": "", "type": "path", "description": "User ID" } ], "body": { "type": "multipart-form", "data": [ { "name": "profile_picture", "type": "text", "value": "" } ] }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://figshare.com/account/applications/authorize", "accessTokenUrl": "https://api.figshare.com/v2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Updates the profile picture of the user's public profile." } ] } ], "bundled": true }