About DAMAP
-
Fetch your maDMPs:
Endpoint:
GET /api/invenio_damap/damap/dmp
Token Required: Yes — generate one here.
cURL:
curl "https://researchdata.tuwien.ac.at/api/invenio_damap/damap/dmp" \ -H "Authorization: Bearer {your-access-token}"
Python (requests):
import requests url = "https://researchdata.tuwien.ac.at/api/invenio_damap/damap/dmp" headers = { "Authorization": "Bearer {your-access-token}", } response = requests.post(url, headers=headers) print(response.json())
Example Response (HTTP 200 - OK):
{ "hits": { "hits": [ { "id": 4002, "created": "2025-02-10T11:28:03.472Z", "project": { "id": 4002, "description": "A very important chemistry project.", "title": "Advanced Chemical Reactions Study" }, "datasets": [], "links": {} }, { "id": 4001, "created": "2025-01-10T14:07:26.234Z", "project": { "id": 4001, "description": "A very important climate project.", "title": "Global Climate Change Analysis" }, "datasets": [], "links": {} } ], "total": 10 }, "links": { "self": "https://researchdata.tuwien.ac.at/api/invenio_damap/damap/dmp?facets=%7B%7D" } }
-
Link your selected InvenioRDM record to the target maDMP:
Endpoint:
POST /api/invenio_damap/damap/dmp/{dmp_id}/dataset/{record_id}
Token Required: Yes — generate one here.
cURL:
curl -X POST "https://researchdata.tuwien.ac.at/api/invenio_damap/dmp/1337/dataset/abcde-12345" \ -H "Authorization: Bearer {your-access-token}"
Python (requests):
import requests url = "https://researchdata.tuwien.ac.at/api/invenio_damap/dmp/1337/dataset/abcde-12345" headers = { "Authorization": "Bearer {your-access-token}", } response = requests.post(url, headers=headers) print(response.json())
Example Response (HTTP 201 - CREATED):
{ "id": "abcde-12345", "metadata": { "title": "New Dataset Title", "creators": [{"name": "Doe, Jane"}], "publication_date": "2025-01-09", "resource_type": {"id": "dataset"} }, "links": { "self": "https://researchdata.tuwien.ac.at/api/records/abcde-12345", "files": "https://researchdata.tuwien.ac.at/api/records/abcde-12345/files" } }