Create multiple entries (PUT)
Create multiple manifest entries is a Notify API method that can be used to create all entries into a manifest in one request.
See also:
Usage
Request method:
PUT
Request URL:
{baseUrl}/notify-api/tenants/local/installations/local/environments/local/source-systems/{sourceSystemName}/source-entities/{sourceEntityName}/manifests/{id}/entries
where:
{base_url}, {sourceSystemName}, {sourceEntityName} see Notify API
{id} is the manifest id.
Request body:
[
{
"batch": {integer},
"sourceFile": {string}
}
]
See Notify API for property descriptions and guidelines.
Notes
Use this method (PUT) to add all entries into a manifest with one request. If there are a lot of entries, PUT is much faster than calling create entry (POST) in a loop.
PUT overrides any existing entries in a manifest. Use create entry (POST) to add entries one at a time.
Examples
Create all entries into a manifest in one request
Property | Value |
---|---|
sourceSystemName | taxidata |
sourceEntityName | ratecode_description |
id | a936c9c5-a2d5-4d1a-bcf5-7832f21342ca |
Request method:
PUT
Request URL:
{base_url}/notify-api/tenants/local/installations/local/environments/local/source-systems/taxidata/source-entities/ratecode_description/manifests/a936c9c5-a2d5-4d1a-bcf5-7832f21342ca/entries
Request body:
[
{
"batch": 1618916378963,
"sourceFile": "azure://example.blob.core.windows.net/example-container/taxidata/ratecode_description.batch.1618916378963.csv.gz"
},
{
"batch": 1618916457230,
"sourceFile": "azure://example.blob.core.windows.net/example-container/taxidata/ratecode_description.batch.1618916457230.csv.gz"
}
]
Response code:
201 (Created)
Response body:
[
{
"id": "30e9b2f3-5769-4a17-a685-18cbd5f5d010",
"batch": 1618916378963,
"sourceFile": "azure://example.blob.core.windows.net/example-container/taxidata/ratecode_description.batch.1618916378963.csv.gz"
},
{
"id": "c916cb4a-b5da-4890-9ef4-3717cd186062",
"batch": 1618916457230,
"sourceFile": "azure://example.blob.core.windows.net/example-container/taxidata/ratecode_description.batch.1618916457230.csv.gz"
}
]