Register a file dataset
Registers a dataset read from a file source, with the schedule of its days. The contract goes in as a JSON string holding the whole text of the contract file; its bytes are stored, as sent, as version 1. An sftp or ftp source needs a contract with layout.manifest.
Cabeçalhos
Corpo
JSON request payload.
The whole text of the contract file; the text must be a JSON object. Reporter stores these bytes unchanged as version 1, so the SHA-256 of the version is the SHA-256 of the file.
"{\"files\":[{\"table\":\"entries\",\"name\":\"entries-{yyyy}{MM}{dd}.csv\",\"format\":\"csv\",\"required\":true,\"csv\":{\"delimiter\":\";\",\"header\":true,\"encoding\":\"utf-8\",\"decimalSeparator\":\".\"},\"columns\":[{\"name\":\"id\",\"source\":\"id\",\"type\":\"integer\",\"required\":true}]}],\"layout\":{\"dayPath\":\"{yyyy}/{MM}/{dd}\"}}"
Resposta
Created

