Resources

Create a new resource

Create a new resource associated with a registration.

post/resources/

Request

  • Base URL
    https://api.test.osf.io/v2
  • URL
    https://api.test.osf.io/v2/resources/
  • Auth
    none declared

Request body

Example request

{
  "data": {
    "type": "resources",
    "attributes": {
      "description": "Dataset resource",
      "resource_type": "data"
    },
    "relationships": {
      "registration": {
        "data": {
          "type": "registrations",
          "id": "reg123"
        }
      }
    }
  }
}

Response

Successfully created a new resource.

Changes

No recorded changes to this operation across all 2 revisions of this API.