CEDAR Metadata

Create a CEDAR metadata record for a file

Changed on

Create 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 URL
    https://api.test.osf.io/v2
  • URL
    https://api.test.osf.io/v2/files/{file_id}/cedar_metadata_records/
  • Auth
    none 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