Creating Datasets
You can create a Dataset with a specific name within a Project. This Dataset can then be populated with Entities via the API or via Forms and Submissions, and then used by other Forms. This endpoint allows a Dataset to be created programatically without an input form.
The name of a Dataset is case-sensitive in that it will keep the capitalization provided (e.g. "Trees"). But Central will not allow a second Dataset with the same name but different capitalization to be created (e.g. "trees" when "Trees" already exists).
By default, the Dataset will have no properties, but each Entity will have a label and a unique ID (uuid). You can add additional properties with this related endpoint.
The Dataset name must follow the the same rules as XML identifiers and not start with . or __. See the Entities XForms Specification for more information.
Path parameters
The numeric ID of the Project
Response
OK
Example response
{
"name": "people",
"createdAt": "2018-01-19T23:58:03.395Z",
"projectId": 1,
"approvalRequired": true,
"accessFilter": {
"type": "property",
"rules": [
{
"datasetProperty": "state",
"actorProperty": "region"
}
]
},
"lastUpdate": "2020-10-10T03:04:51.695Z",
"linkedForms": [
{
"xmlFormId": "simple",
"name": "Simple"
}
],
"sourceForms": [
{
"xmlFormId": "simple",
"name": "Simple"
}
],
"properties": [
{
"name": "the.age",
"odataName": "the_age",
"publishedAt": "2018-01-21T00:04:11.153Z",
"forms": [
{
"xmlFormId": "simple",
"name": "Simple"
}
]
}
]
}Changes
Changed in 5 of the 54 revisions of this API.14
- ○
added the optional property
allOf[Dataset]/accessFilterto the response with the200statusresponse-optional-property-added
- ○
- ○
api operation id
Creating Datasetsremoved and replaced withcreateDatasetsapi-operation-id-removed
- ○
- ○
removed the non-success response with the status
403response-non-success-status-removed
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲