projects
Create project
Changed onCreate a new project. Institutions with item-type based metadata enabled wrap metadata in a fields object (title, description, funding_list). Institutions without item-type based metadata can use the legacy flat-payload form. funding_list entries accept either {"id": <int>} (reference an existing record) or {"title": "..."} (mint a new user-defined entry). Unrecognised field names inside fields (e.g. a typo) are rejected with 422.
post/account/projects
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.
Request body
Example request
{
"title": "project title",
"description": "project description",
"custom_fields": {
"defined_key": "value for it"
},
"custom_fields_list": [
{
"name": "key"
}
],
"fields": {
"title": "My Project",
"description": "Project description",
"funding_list": [
{
"title": "Test Grant"
}
]
}
}Response
Created
Example response
{
"entity_id": 33334444
}Changes
- info
added the new optional request property
- info
the request property
became optional
- info
- breaking
added required 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