POST api/internal/dataset/files/{uuid}

Add file(s) to dataset

Request Information

URI Parameters

NameDescriptionTypeAdditional information
uuid

string

Required

Body Parameters

Collection of Kartverket.Geonorge.Download.Models.File
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Filename

string

String length: inclusive between 0 and 100

Url

string

None.

Category

string

String length: inclusive between 0 and 50

SubCategory

string

String length: inclusive between 0 and 50

Division

string

String length: inclusive between 0 and 50

DivisionKey

string

String length: inclusive between 0 and 100

Projection

string

String length: inclusive between 0 and 100

Format

string

String length: inclusive between 0 and 100

DatasetId

integer

None.

Dataset

Kartverket.Geonorge.Download.Models.Dataset

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": "a222cade-83f6-4f5a-adbc-8bb084a7770b",
    "Filename": "sample string 1",
    "Url": "sample string 2",
    "Category": "sample string 3",
    "SubCategory": "sample string 4",
    "Division": "sample string 5",
    "DivisionKey": "sample string 6",
    "Projection": "sample string 7",
    "Format": "sample string 8",
    "DatasetId": 1,
    "Dataset": {
      "Id": 1,
      "Title": "sample string 2",
      "MetadataUuid": "sample string 3",
      "SupportsAreaSelection": true,
      "SupportsFormatSelection": true,
      "SupportsPolygonSelection": true,
      "SupportsProjectionSelection": true,
      "FmeClippingUrl": "sample string 4",
      "MapSelectionLayer": "sample string 5",
      "AccessConstraint": "sample string 6",
      "AccessConstraintRequiredRole": "sample string 7",
      "MaxArea": 8,
      "filliste": []
    }
  }
]

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'HashSet`1'.

Response Information

Resource Description

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.