Add a new Data Registry entry
POST {{baseUrl}}/dataRegistries
Initiate creation of Data Registry for the current tenant. The Data Registry information is used during data ingest for the tenant. Only one Data Registry can be created for a request. The dataTag, sourceName and fileUploadStrategy is required to create Date Registry otherwise creation is rejected. DataUpload will allow only files to be uploaded matching this Data Registry. This returns unique registryId for each request that can be used to retrieve the created registry. The tenant cannot have more than 500 data registries in the system. The schemaFrozen flag must be set to false during creation of a registry. It can be set to true after creation of the initial schema for the registry.
Data partitioning on the registry can be optionally enabled by specifying a single partitionKey at the time of registry creation. The property value can be set to sdi-default-partition-key
to enable default partitioning based on the sdi_hour attribute. The property can also be set to a custom attribute present in the data to enable custom partitioning based on that attribute.
Request Body
{"dataTag"=>"<string>", "defaultRootTag"=>"<string>", "filePattern"=>"<string>", "fileUploadStrategy"=>"<string>", "metaDataTags"=>["<string>", "<string>"], "sourceName"=>"<string>", "xmlProcessRules"=>["<string>", "<string>"], "partitionKeys"=>["<string>", "<string>"], "schemaFrozen"=>false}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"createdDate":"reprehenderit tempor deserunt veniam in","dataTag":"ullamco pariatur dolore","defaultRootTag":"veniam ex","filePattern":"consectetur eu","fileUploadStrategy":"replace","updatedDate":"elit nisi sit","metaDataTags":["exercitation incididunt id","veniam reprehenderit"],"xmlProcessRules":["reprehenderit nostrud pr","laboris pariatur non"],"partitionKeys":["aliqua quis aliquip","ut ea"],"mutable":true,"registryId":"nisi sed Lorem amet","sourceId":"fugiat consequat commodo aliquip elit","sourceName":"cillum voluptate sit dolore","schemaFrozen":false}