CEDAR Metadata
Create a CEDAR metadata record for a file
Changed onCreate a new CEDAR metadata record for the specified file. CEDAR metadata records follow structured templates and can include rich metadata for data sharing and reuse.
post/files/{file_id}/cedar_metadata_records/
Request
- Base URLhttps://api.test.osf.io/v2
- URLhttps://api.test.osf.io/v2/files/{file_id}/cedar_metadata_records/
- Authnone declared
Path parameters
file_idstring required
The unique identifier of the file.
Request body
Example request
{
"data": {
"type": "cedar-metadata-records",
"attributes": {
"metadata": {
"title": "Example Title",
"description": "Example Description"
}
},
"relationships": {
"template": {
"data": {
"id": "123abc",
"type": "cedar-metadata-templates"
}
}
}
}
}Response
Successfully created a new CEDAR metadata record.
Changes
- info
added the non-success response with the status
- info