Ingestion sets
Ingestion sets: 6 operations, tagged ingestion-sets in the OpenAPI document.
| Method | Path | Summary |
|---|---|---|
GET |
/api/ingestion-sets |
List the sets that own ingestions |
PUT |
/api/ingestion-sets/{name} |
Make a set’s ingestions what its items say: create, change, take in ones made by hand, and delete what it no longer lists |
GET |
/api/ingestion-sets/{name}/applies |
List a set’s kept applies, newest first |
GET |
/api/ingestion-sets/{name}/applies/{applyId} |
Get what one apply of a set was given |
POST |
/api/ingestion-sets/{name}/applies/{applyId}/reapply |
Go back to an earlier apply: apply the set again with the items that apply was given, as a new apply |
POST |
/api/ingestion-sets/{name}/release |
Let go of a set: its ingestions stay as they are and are edited one at a time again |
Operations
Section titled “Operations”GET /api/ingestion-sets
Section titled “GET /api/ingestion-sets”List the sets that own ingestions
Operation ID: listIngestionSets
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json IngestionSetListResponse |
default |
Error | application/json ErrorModel |
PUT /api/ingestion-sets/{name}
Section titled “PUT /api/ingestion-sets/{name}”Make a set’s ingestions what its items say: create, change, take in ones made by hand, and delete what it no longer lists
Operation ID: applyIngestionSet
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name |
path | string | yes | The set’s name: lowercase letters, digits and hyphens |
dryRun |
query | boolean | no | Do all the checks and say what would be done, writing nothing |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
ApplyIngestionSetRequest |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json IngestionSetPlanResponse |
default |
Error | application/json ErrorModel |
GET /api/ingestion-sets/{name}/applies
Section titled “GET /api/ingestion-sets/{name}/applies”List a set’s kept applies, newest first
Operation ID: listIngestionSetApplies
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name |
path | string | yes | The set’s name: lowercase letters, digits and hyphens |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json IngestionSetApplyListResponse |
default |
Error | application/json ErrorModel |
GET /api/ingestion-sets/{name}/applies/{applyId}
Section titled “GET /api/ingestion-sets/{name}/applies/{applyId}”Get what one apply of a set was given
Operation ID: getIngestionSetApply
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name |
path | string | yes | |
applyId |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json IngestionSetArchiveResponse |
default |
Error | application/json ErrorModel |
POST /api/ingestion-sets/{name}/applies/{applyId}/reapply
Section titled “POST /api/ingestion-sets/{name}/applies/{applyId}/reapply”Go back to an earlier apply: apply the set again with the items that apply was given, as a new apply
Operation ID: reapplyIngestionSet
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name |
path | string | yes | |
applyId |
path | string | yes | |
dryRun |
query | boolean | no | Do all the checks and say what would be done, writing nothing |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json IngestionSetPlanResponse |
default |
Error | application/json ErrorModel |
POST /api/ingestion-sets/{name}/release
Section titled “POST /api/ingestion-sets/{name}/release”Let go of a set: its ingestions stay as they are and are edited one at a time again
Operation ID: releaseIngestionSet
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name |
path | string | yes | The set’s name: lowercase letters, digits and hyphens |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json IngestionSetReleaseResponse |
default |
Error | application/json ErrorModel |
Schemas
Section titled “Schemas”ApplyIngestionSetRequest
Section titled “ApplyIngestionSetRequest”| Field | Type | Required | Description |
|---|---|---|---|
files |
SetFile[] |
no | The files the items were read from, as they are in the repository; kept with the apply (at most 2 MB in all) Max items 500. |
items |
IngestionSetItem[] |
yes | The set’s ingestions, no two of the same application, client and code |
IngestionSetApplyListResponse
Section titled “IngestionSetApplyListResponse”| Field | Type | Required | Description |
|---|---|---|---|
applies |
IngestionSetApplyResponse[] |
yes |
IngestionSetApplyResponse
Section titled “IngestionSetApplyResponse”| Field | Type | Required | Description |
|---|---|---|---|
appliedAt |
string (date-time) | yes | |
appliedBy |
string | no | |
changes |
SetChange[] |
yes | |
files |
integer (int64) | yes | How many files they were read from |
goingBackTo |
string | no | The earlier apply it applied again |
id |
string | yes | |
items |
integer (int64) | yes | How many items it was given |
set |
string | yes |
IngestionSetArchiveResponse
Section titled “IngestionSetArchiveResponse”| Field | Type | Required | Description |
|---|---|---|---|
appliedAt |
string (date-time) | yes | |
appliedBy |
string | yes | |
applyId |
string | yes | |
files |
SetFile[] |
yes | |
goingBackTo |
string | no | |
items |
IngestionSetItem[] |
yes | |
set |
string | yes |
IngestionSetItem
Section titled “IngestionSetItem”| Field | Type | Required | Description |
|---|---|---|---|
active |
boolean | no | Whether the ingestion runs. When omitted: a new ingestion whose source names a config entry is created paused (set the entry and its secrets, then resume), any other is created active, and one that exists keeps its state, so a pause made since stays. When given, an apply enforces it. |
application |
string | yes | Code of the owning application, which must be of type INTEGRATION |
client |
string | yes | The client’s id (clt_…) or identifier, or * for every client: one ingestion per client there is when the set is applied (needs a caller that reaches every client) |
code |
string | yes | |
keepFailedPayloads |
boolean | no | Keep the first 2 KB of a payload that failed. Off unless the client has agreed. |
name |
string | yes | |
source |
any | yes | Where the data comes from: {kind: http|sftp|s3|sqs|rabbitmq|database-poll|api-poll|custom, …} |
split |
any | yes | How a payload becomes records: {kind: none|csv|json|xml, …} |
target |
Target |
yes |
IngestionSetListResponse
Section titled “IngestionSetListResponse”| Field | Type | Required | Description |
|---|---|---|---|
sets |
IngestionSetResponse[] |
yes |
IngestionSetPlanResponse
Section titled “IngestionSetPlanResponse”| Field | Type | Required | Description |
|---|---|---|---|
applyId |
string | no | The recorded apply; absent for a dry run and for an apply that changed nothing |
changes |
SetChange[] |
yes | Each item of the set, then each ingestion removed from it |
dryRun |
boolean | yes | |
name |
string | yes |
IngestionSetReleaseResponse
Section titled “IngestionSetReleaseResponse”| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | |
released |
integer (int64) | yes |
IngestionSetResponse
Section titled “IngestionSetResponse”| Field | Type | Required | Description |
|---|---|---|---|
createdAt |
string (date-time) | yes | |
id |
string | yes | |
ingestions |
integer (int64) | yes | |
name |
string | yes | |
updatedAt |
string (date-time) | yes |
SetChange
Section titled “SetChange”| Field | Type | Required | Description |
|---|---|---|---|
action |
string | yes | One of: CREATE, CHANGE, ADOPT, UNCHANGED, REMOVE. |
application |
string | yes | |
changed |
string[] | yes | |
client |
string | yes | |
code |
string | yes | |
ingestionId |
string | no | |
warnings |
string[] | no |
SetFile
Section titled “SetFile”| Field | Type | Required | Description |
|---|---|---|---|
content |
string | yes | |
path |
string | yes |
Target
Section titled “Target”| Field | Type | Required | Description |
|---|---|---|---|
batchSize |
integer (int64) | yes | |
code |
string | yes | A dispatch job’s code, application:subdomain:aggregate:action; for an EVENT target, the code of an existing event type |
connection |
string | no | |
dataOnly |
boolean | no | DISPATCH_JOB only: deliver the record as it is, with its own content type, instead of the platform envelope |
kind |
string | no | What each record becomes; DISPATCH_JOB when absent One of: DISPATCH_JOB, EVENT. |
mode |
string | no | Not for an EVENT target |
pool |
string | no | Not for an EVENT target |
serviceAccount |
string | no | |
targetUrl |
string | no | The delivery URL. May be left out only when the source names a config entry whose value gives it (exactly one of the two). Not for an EVENT target |
wrapNonJson |
boolean | no | EVENT only: deliver a record that is not JSON as {contentType, body}. Required unless the records are known to be JSON |