datasets

Reorder resources

put/datasets/{dataset}/resources/

Request

  • Base URL
    https://data.public.lu/api/1
  • URL
    https://data.public.lu/api/1/datasets/{dataset}/resources/
  • Auth
    none declared

Path parameters

datasetstring required

The dataset ID or slug

Headers

X-Fieldsstring mask

An optional fields mask

Request body

created_atstring date-time

The resource creation date

descriptionstring markdown

The resource markdown description

extrasobject

Extra attributes as key-value pairs

filesizeinteger

The resource file size in bytes

filetype'file' | 'remote' required

Whether the resource is an uploaded file, a remote file or an API

formatstring required

The resource format

idstring

The resource unique ID

last_modifiedstring date-time

The resource last modification date

lateststring

The permanent URL redirecting to the latest version of the resource. When the resource data is updated, the URL will change, the latest URL won't.

metricsobject

The resource metrics

mimestring

The resource mime type

preview_urlstring

An optional preview URL to be loaded as a standalone page (ie. iframe or new page)

titlestring required

The resource title

type'main' | 'documentation' | 'update' | 'api' | 'code' | 'other' required

Resource type (documentation, API...)

urlstring required

The resource URL

Example request

[
  {
    "checksum": {
      "type": "sha1"
    },
    "filetype": "file",
    "type": "main"
  }
]

Response

Success

created_atstring date-time

The resource creation date

descriptionstring markdown

The resource markdown description

extrasobject

Extra attributes as key-value pairs

filesizeinteger

The resource file size in bytes

filetype'file' | 'remote' required

Whether the resource is an uploaded file, a remote file or an API

formatstring required

The resource format

idstring

The resource unique ID

last_modifiedstring date-time

The resource last modification date

lateststring

The permanent URL redirecting to the latest version of the resource. When the resource data is updated, the URL will change, the latest URL won't.

metricsobject

The resource metrics

mimestring

The resource mime type

preview_urlstring

An optional preview URL to be loaded as a standalone page (ie. iframe or new page)

titlestring required

The resource title

type'main' | 'documentation' | 'update' | 'api' | 'code' | 'other' required

Resource type (documentation, API...)

urlstring required

The resource URL

Example response

[
  {
    "checksum": {
      "type": "sha1"
    },
    "filetype": "file",
    "type": "main"
  }
]

Changes

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