POST /dataspacesΒΆ

Request JSON object:

Attribute Type Description
name String Unique name of the dataspace (a string between 2 and 100 characters long, containing only lowercase alphanumeric characters, - and _)
title String Dataspace title
description String Additional information about the dataspace
visibility String Visibility can be private or public. Default value is private. If a dataspace is public, all registered users have read-only access to it. If a dataspace is private, only users with privileges can access it.
origin String Information about origin of the dataspace (NTE, AtoM, ...)

Response JSON object:

Attribute Type Description
id String Unique id of the dataspace object
url String Dataspace resource URL
resources String URL for the dataspace’s resources
sets String URL for the dataspace’s sets
name String Dataspace unique name
title String Dataspace title
description String Additional information about the dataspace
visibility String Visibility can be private or public
origin String Information about origin of the dataspace (NTE, AtoM, ...)
state String State can be “active” or “deleted”

Example request:

curl -H "Authorization: your-apikey" -H "Content-Type: application/json" \
    -d '{"name":"cendari-dataspace", "title":"CENDARI dataspace", "description":"Content of this dataspaces is created within the CENDARI project"}' \
    http://localhost:42042/v1/dataspaces

Example response:

{
  "id": "c5633d7f-8bb8-4b77-be22-6ee722ff4705",
  "url": "http://localhost:42042/v1/dataspaces/c5633d7f-8bb8-4b77-be22-6ee722ff4705",
  "resources": "http://localhost:42042/v1/dataspaces/c5633d7f-8bb8-4b77-be22-6ee722ff4705/resources",
  "sets": "http://localhost:42042/v1/dataspaces/c5633d7f-8bb8-4b77-be22-6ee722ff4705/sets",
  "name": "cendari-dataspace",
  "title": "CENDARI dataspace",
  "description": "Content of this dataspaces is created within the CENDARI project",
  "visibility": "private",
  "origin": "",
  "state": "active"
}