harvest

Preview an harvesting from a source created with the given payload

post/harvest/source/preview

Request

  • Base URL
    https://data.public.lu/api/1
  • URL
    https://data.public.lu/api/1/harvest/source/preview
  • Auth
    none declared

Headers

X-Fieldsstring mask

An optional fields mask

Request body

activeboolean required

Is this source active

autoarchiveboolean required

If enabled, datasets not present on the remote source will be automatically archived

backendstring required

The source backend

configobject

The configuration as key-value pairs

created_atstring date-time required

The source creation date

deletedstring date-time

The source deletion date

descriptionstring markdown

The source description

idstring

The source unique identifier

namestring required

The source display name

schedulestring

The source schedule (interval or cron expression)

urlstring required

The source base URL

Response

Success

createdstring date-time required

The job creation date

endedstring date-time

The job end date

idstring required

The job execution ID

sourcestring required

The source owning the job

startedstring date-time

The job start date

status'pending' | 'initializing' | 'initialized' | 'processing' | 'done' | 'done-errors' | 'failed' required

The job status

Example response

{
  "items": [
    {
      "dataservice": {
        "format": "REST",
        "title": "My awesome API"
      },
      "dataset": {
        "community_resources": [
          {
            "checksum": {
              "type": "sha1"
            },
            "filetype": "file",
            "type": "main"
          }
        ],
        "frequency": "unknown",
        "resources": [
          {
            "checksum": {
              "type": "sha1"
            },
            "filetype": "file",
            "type": "main"
          }
        ],
        "spatial": {
          "geom": {
            "type": "Point"
          }
        }
      },
      "status": "pending"
    }
  ],
  "status": "pending"
}

Changes

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