/filters

POST

Create a resource for listing a selection of dimensions and dimension options to be added to filter for a dataset

Parameters

Name Type Description
filter body Model of all editable properties within a filter

Responses

201: filter was created

Example value
{
  "dataset": {
    "edition": "string",
    "id": "string",
    "version": 0
  },
  "dimensions": [
    {
      "name": "string",
      "options": [
        "string"
      ]
    }
  ],
  "filter_id": "string",
  "instance_id": "string",
  "links": {
    "dimensions": {
      "href": "http://localhost:8080/filters/51f5f643-0633-45be-ae82-63ff4149f665/dimensions"
    },
    "self": {
      "href": "http://localhost:8080/filters/51f5f643-0633-45be-ae82-63ff4149f665"
    },
    "version": {
      "href": "http://localhost:8080/datasets/DE3BC0B6-D6C4-4E20-917E-95D7EA8C91DC/editions/2017/version/1",
      "id": "de3bc0b6-d6c4-4e20-917e-95d7ea8c91dc"
    }
  },
  "population_type": "string",
  "published": true,
  "type": "string"
}

400: Invalid request body

500: Failed to process the request due to an internal error