{"openapi":"3.0.3","info":{"title":"Stream Service","description":"A service for continuously importing data to the Keboola platform.","license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"},"version":"1.0"},"servers":[{"url":"https://stream.{stack}","variables":{"stack":{"enum":["keboola.com","eu-central-1.keboola.com","north-europe.azure.keboola.com","eu-west-1.aws.keboola.dev","east-us-2.azure.keboola-testing.com"],"default":"keboola.com"}}},{"url":"http://localhost:8001"}],"paths":{"/":{"get":{"tags":["documentation"],"summary":"Redirect to /v1","description":"Redirect to /v1.","operationId":"ApiRootIndex","responses":{"301":{"description":"Moved Permanently response."}}}},"/v1":{"get":{"tags":["documentation"],"summary":"List API name and link to documentation.","description":"List API name and link to documentation.","operationId":"ApiVersionIndex","responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceDetail"},"example":{"api":"stream","documentation":"https://stream.keboola.com/v1/documentation"}}}}}}},"/v1/branches/{branchId}/aggregation/sources":{"get":{"tags":["internal"],"summary":"Aggregation endpoint for sources","description":"Details about sources for the UI.","operationId":"AggregationSources","parameters":[{"name":"afterId","in":"query","description":"Request records after the ID.","allowEmptyValue":true,"schema":{"type":"string","description":"Request records after the ID.","default":"","example":"my-object-123"},"example":"my-object-123"},{"name":"limit","in":"query","description":"Maximum number of returned records.","allowEmptyValue":true,"schema":{"type":"integer","description":"Maximum number of returned records.","default":100,"example":100,"format":"int64","minimum":1,"maximum":100},"example":100},{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregatedSourcesResult"},"example":{"projectId":123,"branchId":345,"page":{"limit":100,"totalCount":1000,"afterId":"my-object-123","lastId":"my-object-456"},"sources":[{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","http":{"url":"https://stream-in.keboola.com/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"name":"My HTTP Source","projectId":1234,"sinks":[],"sourceId":"my-http-source","type":"http","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}},{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","name":"My OTLP Source","otlp":{"baseUrl":"https://stream-in.keboola.com/otlp/1234/my-otlp-source","secret":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX","url":"https://stream-in.keboola.com/otlp/1234/my-otlp-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"projectId":1234,"sinks":[],"sourceId":"my-otlp-source","type":"otlp","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}}]}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources":{"get":{"tags":["configuration"],"summary":"List all sources","description":"List all sources in the branch.","operationId":"ListSources","parameters":[{"name":"afterId","in":"query","description":"Request records after the ID.","allowEmptyValue":true,"schema":{"type":"string","description":"Request records after the ID.","default":"","example":"my-object-123"},"example":"my-object-123"},{"name":"limit","in":"query","description":"Maximum number of returned records.","allowEmptyValue":true,"schema":{"type":"integer","description":"Maximum number of returned records.","default":100,"example":100,"format":"int64","minimum":1,"maximum":100},"example":100},{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourcesList"},"example":{"projectId":123,"branchId":345,"page":{"limit":100,"totalCount":1000,"afterId":"my-object-123","lastId":"my-object-456"},"sources":[{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","http":{"url":"https://stream-in.keboola.com/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"name":"My HTTP Source","projectId":1234,"sourceId":"my-http-source","type":"http","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}},{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","name":"My OTLP Source","otlp":{"baseUrl":"https://stream-in.keboola.com/otlp/1234/my-otlp-source","secret":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX","url":"https://stream-in.keboola.com/otlp/1234/my-otlp-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"projectId":1234,"sourceId":"my-otlp-source","type":"otlp","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}}]}}}}},"security":[{"storage-api-token":[]}]},"post":{"tags":["configuration"],"summary":"Create source","description":"Create a new source in the branch.","operationId":"CreateSource","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSourceRequestBody"},"example":{"sourceId":"github-webhook-source","type":"http","name":"Github Webhook Source","description":"The source receives events from Github."}}}},"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"409":{"description":"stream.api.sourceAlreadyExists: Source already exists in the branch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":409,"error":"stream.api.sourceAlreadyExists","message":"Source already exists in the branch."}}}},"422":{"description":"stream.api.resourceLimitReached: Resource limit reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":422,"error":"stream.api.resourceLimitReached","message":"Maximum number of sources per project is 100."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/deleted":{"get":{"tags":["configuration"],"summary":"List all deleted sources","description":"List all deleted sources in the branch.","operationId":"ListDeletedSources","parameters":[{"name":"afterId","in":"query","description":"Request records after the ID.","allowEmptyValue":true,"schema":{"type":"string","description":"Request records after the ID.","default":"","example":"my-object-123"},"example":"my-object-123"},{"name":"limit","in":"query","description":"Maximum number of returned records.","allowEmptyValue":true,"schema":{"type":"integer","description":"Maximum number of returned records.","default":100,"example":100,"format":"int64","minimum":1,"maximum":100},"example":100},{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourcesList"},"example":{"projectId":123,"branchId":345,"page":{"limit":100,"totalCount":1000,"afterId":"my-object-123","lastId":"my-object-456"},"sources":[{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","http":{"url":"https://stream-in.keboola.com/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"name":"My HTTP Source","projectId":1234,"sourceId":"my-http-source","type":"http","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}},{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","name":"My OTLP Source","otlp":{"baseUrl":"https://stream-in.keboola.com/otlp/1234/my-otlp-source","secret":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX","url":"https://stream-in.keboola.com/otlp/1234/my-otlp-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"projectId":1234,"sourceId":"my-otlp-source","type":"otlp","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}}]}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}":{"delete":{"tags":["configuration"],"summary":"Delete source","description":"Delete the source.\n\nWith `cascade=true` the source and its sinks are hard-deleted (so the same name can be reused immediately) and the destination Keboola tables and their bucket are deleted as well.","operationId":"DeleteSource","parameters":[{"name":"cascade","in":"query","description":"Also delete the destination Keboola tables and bucket, and hard-delete the source so it can be recreated with the same name.","allowEmptyValue":true,"schema":{"type":"boolean","description":"Also delete the destination Keboola tables and bucket, and hard-delete the source so it can be recreated with the same name.","default":false,"example":true},"example":true},{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}}},"security":[{"storage-api-token":[]}]},"get":{"tags":["configuration"],"summary":"Get source","description":"Get the source definition.","operationId":"GetSource","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"},"examples":{"http_source":{"summary":"http_source","description":"HTTP source response shape.","value":{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","http":{"url":"https://stream-in.keboola.com/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"name":"My HTTP Source","projectId":1234,"sourceId":"my-http-source","type":"http","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}}},"otlp_source":{"summary":"otlp_source","description":"OTLP source response shape.","value":{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","name":"My OTLP Source","otlp":{"baseUrl":"https://stream-in.keboola.com/otlp/1234/my-otlp-source","secret":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX","url":"https://stream-in.keboola.com/otlp/1234/my-otlp-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"projectId":1234,"sourceId":"my-otlp-source","type":"otlp","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}}}}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}}},"security":[{"storage-api-token":[]}]},"patch":{"tags":["configuration"],"summary":"Update source","description":"Update the source.","operationId":"UpdateSource","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceRequestBody"},"example":{"changeDescription":"Renamed.","type":"http","name":"Github Webhook Source","description":"The source receives events from Github."}}}},"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/disable":{"put":{"tags":["configuration"],"summary":"Disable source","description":"Disables the source.","operationId":"DisableSource","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/enable":{"put":{"tags":["configuration"],"summary":"Enable source","description":"Enables the source.","operationId":"EnableSource","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/rotate-secret":{"post":{"tags":["configuration"],"summary":"Rotate source secret","description":"Regenerate the source's 48-character secret without recreating the source.\n\nThe sourceId is preserved; only the secret (and the URL that embeds it) changes. The previous secret stops working immediately, so all producers must be updated with the new URL.","operationId":"RotateSourceSecret","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"},"examples":{"http_source":{"summary":"http_source","description":"HTTP source response shape.","value":{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","http":{"url":"https://stream-in.keboola.com/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"name":"My HTTP Source","projectId":1234,"sourceId":"my-http-source","type":"http","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}}},"otlp_source":{"summary":"otlp_source","description":"OTLP source response shape.","value":{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","name":"My OTLP Source","otlp":{"baseUrl":"https://stream-in.keboola.com/otlp/1234/my-otlp-source","secret":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX","url":"https://stream-in.keboola.com/otlp/1234/my-otlp-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"projectId":1234,"sourceId":"my-otlp-source","type":"otlp","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}}}}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/settings":{"get":{"tags":["configuration"],"summary":"Get source settings","description":"Get source settings.","operationId":"GetSourceSettings","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsResult"},"example":{"settings":[{"key":"some.service.limit","type":"string","description":"Minimal interval between uploads.","value":"1m20s","defaultValue":"30s","overwritten":true,"protected":false,"validation":"minDuration=15s"}]}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}}},"security":[{"storage-api-token":[]}]},"patch":{"tags":["configuration"],"summary":"Update source settings","description":"Update source settings.","operationId":"UpdateSourceSettings","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceSettingsRequestBody"},"example":{"changeDescription":"Updated settings.","settings":[{"key":"some.service.limit","value":"1m20s"}]}}}},"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.forbidden: Modification of protected settings is forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.forbidden","message":"Cannot modify protected keys: \"storage.level.local.encoding.compression.gzip.blockSize\"."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks":{"get":{"tags":["configuration"],"summary":"List sinks","description":"List all sinks in the source.","operationId":"ListSinks","parameters":[{"name":"afterId","in":"query","description":"Request records after the ID.","allowEmptyValue":true,"schema":{"type":"string","description":"Request records after the ID.","default":"","example":"my-object-123"},"example":"my-object-123"},{"name":"limit","in":"query","description":"Maximum number of returned records.","allowEmptyValue":true,"schema":{"type":"integer","description":"Maximum number of returned records.","default":100,"example":100,"format":"int64","minimum":1,"maximum":100},"example":100},{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SinksList"},"example":{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","page":{"limit":100,"totalCount":1000,"afterId":"my-object-123","lastId":"my-object-456"},"sinks":[{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}},"version":{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"created":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"deleted":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"disabled":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"},"reason":"Disabled for recurring problems."}}]}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}}},"security":[{"storage-api-token":[]}]},"post":{"tags":["configuration"],"summary":"Create sink","description":"Create a new sink in the source.","operationId":"CreateSink","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSinkRequestBody"},"example":{"sinkId":"github-pr-table-sink","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}}}}}},"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}},"409":{"description":"stream.api.sinkAlreadyExists: Sink already exists in the source.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":409,"error":"stream.api.sinkAlreadyExists","message":"Sink already exists in the source."}}}},"422":{"description":"stream.api.resourceLimitReached: Resource limit reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":422,"error":"stream.api.resourceLimitReached","message":"Maximum number of sources per project is 100."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks/deleted":{"get":{"tags":["configuration"],"summary":"List deleted sinks","description":"List all deleted sinks in the source.","operationId":"ListDeletedSinks","parameters":[{"name":"afterId","in":"query","description":"Request records after the ID.","allowEmptyValue":true,"schema":{"type":"string","description":"Request records after the ID.","default":"","example":"my-object-123"},"example":"my-object-123"},{"name":"limit","in":"query","description":"Maximum number of returned records.","allowEmptyValue":true,"schema":{"type":"integer","description":"Maximum number of returned records.","default":100,"example":100,"format":"int64","minimum":1,"maximum":100},"example":100},{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SinksList"},"example":{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","page":{"limit":100,"totalCount":1000,"afterId":"my-object-123","lastId":"my-object-456"},"sinks":[{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}},"version":{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"created":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"deleted":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"disabled":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"},"reason":"Disabled for recurring problems."}}]}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks/{sinkId}":{"delete":{"tags":["configuration"],"summary":"Delete sink","description":"Delete the sink.","operationId":"DeleteSink","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"}],"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.sinkNotFound: Sink not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sinkNotFound","message":"Sink \"github-changed-files\" not found."}}}}},"security":[{"storage-api-token":[]}]},"get":{"tags":["configuration"],"summary":"Get sink","description":"Get the sink definition.","operationId":"GetSink","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sink"},"example":{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}},"version":{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"created":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"deleted":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"disabled":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"},"reason":"Disabled for recurring problems."}}}}},"404":{"description":"stream.api.sinkNotFound: Sink not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sinkNotFound","message":"Sink \"github-changed-files\" not found."}}}}},"security":[{"storage-api-token":[]}]},"patch":{"tags":["configuration"],"summary":"Update sink","description":"Update the sink.","operationId":"UpdateSink","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSinkRequestBody"},"example":{"changeDescription":"Renamed.","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}}}}}},"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.sinkNotFound: Sink not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sinkNotFound","message":"Sink \"github-changed-files\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks/{sinkId}/disable":{"put":{"tags":["configuration"],"summary":"Disable sink","description":"Disables the sink.","operationId":"DisableSink","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"}],"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.sinkNotFound: Sink not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sinkNotFound","message":"Sink \"github-changed-files\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks/{sinkId}/enable":{"put":{"tags":["configuration"],"summary":"Enable sink","description":"Enables the sink.","operationId":"EnableSink","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"}],"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.sinkNotFound: Sink not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sinkNotFound","message":"Sink \"github-changed-files\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks/{sinkId}/settings":{"get":{"tags":["configuration"],"summary":"Get sink settings","description":"Get the sink settings.","operationId":"GetSinkSettings","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsResult"},"example":{"settings":[{"key":"some.service.limit","type":"string","description":"Minimal interval between uploads.","value":"1m20s","defaultValue":"30s","overwritten":true,"protected":false,"validation":"minDuration=15s"}]}}}},"404":{"description":"stream.api.sinkNotFound: Sink not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sinkNotFound","message":"Sink \"github-changed-files\" not found."}}}}},"security":[{"storage-api-token":[]}]},"patch":{"tags":["configuration"],"summary":"Update sink settings","description":"Update sink settings.","operationId":"UpdateSinkSettings","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceSettingsRequestBody"},"example":{"changeDescription":"Updated settings.","settings":[{"key":"some.service.limit","value":"1m20s"}]}}}},"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.forbidden: Modification of protected settings is forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.forbidden","message":"Cannot modify protected keys: \"storage.level.local.encoding.compression.gzip.blockSize\"."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks/{sinkId}/statistics/clear":{"delete":{"tags":["configuration"],"summary":"Clear sink statistics","description":"Clears all statistics of the sink.","operationId":"SinkStatisticsClear","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"}],"responses":{"200":{"description":"OK response."},"404":{"description":"stream.api.sinkNotFound: Sink not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sinkNotFound","message":"Sink \"github-changed-files\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks/{sinkId}/statistics/files":{"get":{"tags":["configuration"],"summary":"Sink files statistics","description":"Get files statistics of the sink.","operationId":"SinkStatisticsFiles","parameters":[{"name":"failedFiles","in":"query","description":"Filter for not imported files. If set to true, only not imported files will be included.","allowEmptyValue":true,"schema":{"type":"boolean","description":"Filter for not imported files. If set to true, only not imported files will be included.","default":false,"example":false},"example":false},{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SinkStatisticsFilesResult"},"example":{"files":[{"state":"writing","openedAt":"2022-04-28T14:20:04.000Z","closingAt":"2022-04-28T14:20:04.000Z","importingAt":"2022-04-28T14:20:04.000Z","importedAt":"2022-04-28T14:20:04.000Z","retryAttempt":3,"retryReason":"network problem","retryAfter":"2022-04-28T14:20:04.000Z","statistics":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}}}}]}}}},"404":{"description":"stream.api.sinkNotFound: Sink not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sinkNotFound","message":"Sink \"github-changed-files\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks/{sinkId}/statistics/total":{"get":{"tags":["configuration"],"summary":"Sink statistics total","description":"Get total statistics of the sink.","operationId":"SinkStatisticsTotal","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SinkStatisticsTotalResult"},"example":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}}}}}},"404":{"description":"stream.api.sinkNotFound: Sink not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sinkNotFound","message":"Sink \"github-changed-files\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks/{sinkId}/undelete":{"put":{"tags":["configuration"],"summary":"Undelete sink","description":"Undelete the sink.","operationId":"UndeleteSink","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"}],"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.sinkNotFound: Sink not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sinkNotFound","message":"Sink \"github-changed-files\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks/{sinkId}/versions":{"get":{"tags":["configuration"],"summary":"List sink versions","description":"List all sink versions.","operationId":"ListSinkVersions","parameters":[{"name":"afterId","in":"query","description":"Request records after the ID.","allowEmptyValue":true,"schema":{"type":"string","description":"Request records after the ID.","default":"","example":"my-object-123"},"example":"my-object-123"},{"name":"limit","in":"query","description":"Maximum number of returned records.","allowEmptyValue":true,"schema":{"type":"integer","description":"Maximum number of returned records.","default":100,"example":100,"format":"int64","minimum":1,"maximum":100},"example":100},{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVersions"},"example":{"versions":[{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}}],"page":{"limit":100,"totalCount":1000,"afterId":"my-object-123","lastId":"my-object-456"}}}}},"404":{"description":"stream.api.sinkNotFound: Sink not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sinkNotFound","message":"Sink \"github-changed-files\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks/{sinkId}/versions/{versionNumber}":{"get":{"tags":["configuration"],"summary":"Sink version detail","description":"Sink version detail.","operationId":"SinkVersionDetail","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"},{"name":"versionNumber","in":"path","description":"Version number counted from 1.","required":true,"schema":{"type":"integer","description":"Version number counted from 1.","example":3,"format":"int64","minimum":1},"example":3}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"},"example":{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}}}}},"404":{"description":"stream.api.versionNotFound: Version not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.versionNotFound","message":"Version \"001\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/sinks/{sinkId}/versions/{versionNumber}/rollback":{"put":{"tags":["configuration"],"summary":"Rollback sink version","description":"Rollback sink version.","operationId":"RollbackSinkVersion","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"sinkId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"example":"github-pr-table-sink"},{"name":"versionNumber","in":"path","description":"Version number counted from 1.","required":true,"schema":{"type":"integer","description":"Version number counted from 1.","example":3,"format":"int64","minimum":1},"example":3}],"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.versionNotFound: Version not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.versionNotFound","message":"Version \"001\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/statistics/clear":{"delete":{"tags":["configuration"],"summary":"Clear source statistics","description":"Clears all statistics of the source.","operationId":"SourceStatisticsClear","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"responses":{"200":{"description":"OK response."},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/test":{"post":{"tags":["test"],"summary":"Test source payload mapping","description":"Tests configured mapping of the source and its sinks against an example request body.\n\nFor HTTP sources the body is the raw payload that an HTTP client would send (treated as a single record).\n\nFor OTLP sources the body must be a single **flattened OTLP record** — a JSON object with the same shape that the source produces internally for each log record, metric data point, or span. Attributes, resource, and scope are nested objects (not dotted keys); reference them in column mappings as `Body('attributes')['user.id']`, `Body('resource')['service.name']`, `Body('scope')['name']`, etc. Example flattened log record:\n```json\n{\n  \"timestamp\": \"2024-01-15T10:30:00Z\",\n  \"observed_timestamp\": \"2024-01-15T10:30:00Z\",\n  \"severity_number\": 9,\n  \"severity_text\": \"INFO\",\n  \"body\": \"User logged in\",\n  \"flags\": 0,\n  \"attributes\": {\"user.id\": \"user-123\"},\n  \"resource\": {\"service.name\": \"auth-service\"},\n  \"scope\": {\"name\": \"github.com/my/auth\", \"version\": \"1.2.3\"}\n}\n```\nDo not send a raw OTLP protobuf or the multi-record envelope produced by an OTel SDK — the test endpoint intentionally evaluates one already-flattened record so the response is deterministic. For OTLP sources, the `signal` query parameter selects which signal type the request simulates for sink routing (`logs` by default); sinks whose `allowedSignals` filter rejects that signal are skipped in the result.","operationId":"TestSource","parameters":[{"name":"signal","in":"query","description":"OTLP signal type to simulate for sink routing.","allowEmptyValue":true,"schema":{"type":"string","description":"OTLP signal type — one of logs, metrics, or traces.","example":"logs","enum":["logs","metrics","traces"]},"example":"logs"},{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResult"},"example":{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","tables":[{"sinkId":"github-pr-table-sink","tableId":"in.c-bucket.table","rows":[{"columns":[{"name":"id","value":"12345"}]}]}]}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}},"422":{"description":"stream.api.invalidColumnValue: Invalid data for sink.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":422,"error":"stream.api.invalidColumnValue","message":"Invalid value for column \"name\": path \"name\" not found in the body"}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/undelete":{"put":{"tags":["configuration"],"summary":"Undelete source","description":"Undelete the source.","operationId":"UndeleteSource","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/versions":{"get":{"tags":["configuration"],"summary":"List source versions","description":"List all source versions.","operationId":"ListSourceVersions","parameters":[{"name":"afterId","in":"query","description":"Request records after the ID.","allowEmptyValue":true,"schema":{"type":"string","description":"Request records after the ID.","default":"","example":"my-object-123"},"example":"my-object-123"},{"name":"limit","in":"query","description":"Maximum number of returned records.","allowEmptyValue":true,"schema":{"type":"integer","description":"Maximum number of returned records.","default":100,"example":100,"format":"int64","minimum":1,"maximum":100},"example":100},{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityVersions"},"example":{"versions":[{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}}],"page":{"limit":100,"totalCount":1000,"afterId":"my-object-123","lastId":"my-object-456"}}}}},"404":{"description":"stream.api.sourceNotFound: Source not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.sourceNotFound","message":"Source \"github-pull-requests\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/versions/{versionNumber}":{"get":{"tags":["configuration"],"summary":"Source version detail","description":"Source version detail.","operationId":"SourceVersionDetail","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"versionNumber","in":"path","description":"Version number counted from 1.","required":true,"schema":{"type":"integer","description":"Version number counted from 1.","example":3,"format":"int64","minimum":1},"example":3}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"},"example":{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}}}}},"404":{"description":"stream.api.versionNotFound: Version not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.versionNotFound","message":"Version \"001\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/branches/{branchId}/sources/{sourceId}/versions/{versionNumber}/rollback":{"put":{"tags":["configuration"],"summary":"Rollback source version","description":"Rollback source version.","operationId":"RollbackSourceVersion","parameters":[{"name":"branchId","in":"path","required":true,"schema":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"example":"default"},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"example":"github-webhook-source"},{"name":"versionNumber","in":"path","description":"Version number counted from 1.","required":true,"schema":{"type":"integer","description":"Version number counted from 1.","example":3,"format":"int64","minimum":1},"example":3}],"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.versionNotFound: Version not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.versionNotFound","message":"Version \"001\" not found."}}}}},"security":[{"storage-api-token":[]}]}},"/v1/documentation/openapi.json":{"get":{"tags":["documentation"],"summary":"Swagger 2.0 JSON Specification","operationId":"OpenapiJson","responses":{"200":{"description":"File downloaded"}}}},"/v1/documentation/openapi.yaml":{"get":{"tags":["documentation"],"summary":"Swagger 2.0 YAML Specification","operationId":"OpenapiYaml","responses":{"200":{"description":"File downloaded"}}}},"/v1/documentation/openapi3.json":{"get":{"tags":["documentation"],"summary":"OpenAPI 3.0 JSON Specification","operationId":"Openapi3Json","responses":{"200":{"description":"File downloaded"}}}},"/v1/documentation/openapi3.yaml":{"get":{"tags":["documentation"],"summary":"OpenAPI 3.0 YAML Specification","operationId":"Openapi3Yaml","responses":{"200":{"description":"File downloaded"}}}},"/v1/tasks/{taskId}":{"get":{"tags":["configuration"],"summary":"Get task","description":"Get details of a task.","operationId":"GetTask","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the task.","example":"task_1234"},"example":"task_1234"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}}}}},"404":{"description":"stream.api.taskNotFound: Task not found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericError"},"example":{"statusCode":404,"error":"stream.api.taskNotFound","message":"Task \"001\" not found."}}}}},"security":[{"storage-api-token":[]}]}}},"components":{"schemas":{"AggregatedSink":{"type":"object","properties":{"allowedSignals":{"type":"array","items":{"type":"string","description":"OTLP signal type — one of logs, metrics, or traces.","example":"logs","enum":["logs","metrics","traces"]},"description":"Restricts the sink to specific OTLP signal types. Empty (default) accepts all signals. Only relevant for OTLP sources; HTTP sources ignore this field.","example":["logs"]},"branchId":{"type":"integer","description":"ID of the branch.","example":345,"format":"int64"},"created":{"$ref":"#/components/schemas/CreatedEntity"},"deleted":{"$ref":"#/components/schemas/DeletedEntity"},"description":{"type":"string","description":"Description of the source.","example":"The sink stores records to a table.","maxLength":4096},"disabled":{"$ref":"#/components/schemas/DisabledEntity"},"name":{"type":"string","description":"Human readable name of the sink.","example":"Raw Data Sink","minLength":1,"maxLength":40},"projectId":{"type":"integer","description":"ID of the project.","example":123,"format":"int64"},"sinkId":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"statistics":{"$ref":"#/components/schemas/AggregatedStatistics"},"table":{"$ref":"#/components/schemas/TableSink"},"type":{"type":"string","example":"table","enum":["table"]},"version":{"$ref":"#/components/schemas/Version"}},"description":"A mapping from imported data to a destination table.","example":{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}},"version":{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"created":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"deleted":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"disabled":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"},"reason":"Disabled for recurring problems."},"statistics":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}},"files":[{"state":"writing","openedAt":"2022-04-28T14:20:04.000Z","closingAt":"2022-04-28T14:20:04.000Z","importingAt":"2022-04-28T14:20:04.000Z","importedAt":"2022-04-28T14:20:04.000Z","retryAttempt":3,"retryReason":"network problem","retryAfter":"2022-04-28T14:20:04.000Z","statistics":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}}}}]}},"required":["projectId","branchId","sourceId","sinkId","type","name","description","version","created"]},"AggregatedSinks":{"type":"array","items":{"$ref":"#/components/schemas/AggregatedSink"},"example":[{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}},"version":{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"created":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"deleted":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"disabled":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"},"reason":"Disabled for recurring problems."},"statistics":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}},"files":[{"state":"writing","openedAt":"2022-04-28T14:20:04.000Z","closingAt":"2022-04-28T14:20:04.000Z","importingAt":"2022-04-28T14:20:04.000Z","importedAt":"2022-04-28T14:20:04.000Z","retryAttempt":3,"retryReason":"network problem","retryAfter":"2022-04-28T14:20:04.000Z","statistics":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}}}}]}}]},"AggregatedSource":{"type":"object","properties":{"branchId":{"type":"integer","description":"ID of the branch.","example":345,"format":"int64"},"created":{"$ref":"#/components/schemas/CreatedEntity"},"deleted":{"$ref":"#/components/schemas/DeletedEntity"},"description":{"type":"string","description":"Description of the source.","example":"The source receives events from Github.","maxLength":4096},"disabled":{"$ref":"#/components/schemas/DisabledEntity"},"http":{"$ref":"#/components/schemas/HTTPSource"},"name":{"type":"string","description":"Human readable name of the source.","example":"Github Webhook Source","minLength":1,"maxLength":40},"otlp":{"$ref":"#/components/schemas/OTLPSource"},"projectId":{"type":"integer","description":"ID of the project.","example":123,"format":"int64"},"sinks":{"$ref":"#/components/schemas/AggregatedSinks"},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"type":{"type":"string","example":"http","enum":["http","otlp"]},"version":{"$ref":"#/components/schemas/Version"}},"description":"Source of data for further processing, start of the stream, max 100 sources per a branch.","example":{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","name":"My OTLP Source","otlp":{"baseUrl":"https://stream-in.keboola.com/otlp/1234/my-otlp-source","secret":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX","url":"https://stream-in.keboola.com/otlp/1234/my-otlp-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"projectId":1234,"sinks":[],"sourceId":"my-otlp-source","type":"otlp","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}},"required":["projectId","branchId","sourceId","type","name","description","version","created","sinks"]},"AggregatedSources":{"type":"array","items":{"$ref":"#/components/schemas/AggregatedSource"},"example":[{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","http":{"url":"https://stream-in.keboola.com/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"name":"My HTTP Source","projectId":1234,"sinks":[],"sourceId":"my-http-source","type":"http","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}},{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","name":"My OTLP Source","otlp":{"baseUrl":"https://stream-in.keboola.com/otlp/1234/my-otlp-source","secret":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX","url":"https://stream-in.keboola.com/otlp/1234/my-otlp-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"projectId":1234,"sinks":[],"sourceId":"my-otlp-source","type":"otlp","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}}]},"AggregatedSourcesRequest":{"type":"object","properties":{"afterId":{"type":"string","description":"Request records after the ID.","default":"","example":"my-object-123"},"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"limit":{"type":"integer","description":"Maximum number of returned records.","default":100,"example":100,"format":"int64","minimum":1,"maximum":100}},"example":{"branchId":"default","afterId":"my-object-123","limit":100},"required":["branchId"]},"AggregatedSourcesResult":{"type":"object","properties":{"branchId":{"type":"integer","description":"ID of the branch.","example":345,"format":"int64"},"page":{"$ref":"#/components/schemas/PaginatedResponse"},"projectId":{"type":"integer","description":"ID of the project.","example":123,"format":"int64"},"sources":{"$ref":"#/components/schemas/AggregatedSources"}},"description":"List of sources, max 100 sources per a branch.","example":{"projectId":123,"branchId":345,"page":{"limit":100,"totalCount":1000,"afterId":"my-object-123","lastId":"my-object-456"},"sources":[{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","http":{"url":"https://stream-in.keboola.com/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"name":"My HTTP Source","projectId":1234,"sinks":[],"sourceId":"my-http-source","type":"http","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}},{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","name":"My OTLP Source","otlp":{"baseUrl":"https://stream-in.keboola.com/otlp/1234/my-otlp-source","secret":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX","url":"https://stream-in.keboola.com/otlp/1234/my-otlp-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"projectId":1234,"sinks":[],"sourceId":"my-otlp-source","type":"otlp","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}}]},"required":["projectId","branchId","page","sources"]},"AggregatedStatistics":{"type":"object","properties":{"files":{"$ref":"#/components/schemas/SinkFiles"},"levels":{"$ref":"#/components/schemas/Levels"},"total":{"$ref":"#/components/schemas/Level"}},"example":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}},"files":[{"state":"writing","openedAt":"2022-04-28T14:20:04.000Z","closingAt":"2022-04-28T14:20:04.000Z","importingAt":"2022-04-28T14:20:04.000Z","importedAt":"2022-04-28T14:20:04.000Z","retryAttempt":3,"retryReason":"network problem","retryAfter":"2022-04-28T14:20:04.000Z","statistics":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}}}}]},"required":["total","levels","files"]},"By":{"type":"object","properties":{"tokenDesc":{"type":"string","description":"Description of the token.","example":"john.green@company.com"},"tokenId":{"type":"string","description":"ID of the token.","example":"896455"},"type":{"type":"string","description":"Date and time of deletion.","example":"user","enum":["system","user"]},"userId":{"type":"string","description":"ID of the user.","example":"578621"},"userName":{"type":"string","description":"Name of the user.","example":"John Green"}},"description":"Information about the operation actor.","example":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"},"required":["type"]},"CreateSinkRequest":{"type":"object","properties":{"allowedSignals":{"type":"array","items":{"type":"string","description":"OTLP signal type — one of logs, metrics, or traces.","example":"logs","enum":["logs","metrics","traces"]},"description":"Restricts the sink to specific OTLP signal types. Empty (default) accepts all signals. Only relevant for OTLP sources; HTTP sources ignore this field.","example":["logs"]},"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"description":{"type":"string","description":"Description of the source.","example":"The sink stores records to a table.","maxLength":4096},"name":{"type":"string","description":"Human readable name of the sink.","example":"Raw Data Sink","minLength":1,"maxLength":40},"sinkId":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"table":{"$ref":"#/components/schemas/TableSinkCreate"},"type":{"type":"string","example":"table","enum":["table"]}},"example":{"branchId":"default","sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}}},"required":["branchId","sourceId","type","name"]},"CreateSinkRequestBody":{"type":"object","properties":{"allowedSignals":{"type":"array","items":{"type":"string","example":"logs","enum":["logs","metrics","traces"]},"description":"Restricts the sink to specific OTLP signal types. Empty (default) accepts all signals. Only relevant for OTLP sources; HTTP sources ignore this field.","example":["logs"]},"description":{"type":"string","description":"Description of the source.","example":"The sink stores records to a table.","maxLength":4096},"name":{"type":"string","description":"Human readable name of the sink.","example":"Raw Data Sink","minLength":1,"maxLength":40},"sinkId":{"type":"string","description":"Optional ID, if not filled in, it will be generated from name. Cannot be changed later.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"table":{"$ref":"#/components/schemas/TableSinkCreate"},"type":{"type":"string","example":"table","enum":["table"]}},"example":{"sinkId":"github-pr-table-sink","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}}},"required":["type","name"]},"CreateSourceRequest":{"type":"object","properties":{"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"description":{"type":"string","description":"Description of the source.","example":"The source receives events from Github.","maxLength":4096},"name":{"type":"string","description":"Human readable name of the source.","example":"Github Webhook Source","minLength":1,"maxLength":40},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"type":{"type":"string","example":"http","enum":["http","otlp"]}},"example":{"branchId":"default","sourceId":"github-webhook-source","type":"http","name":"Github Webhook Source","description":"The source receives events from Github."},"required":["branchId","type","name"]},"CreateSourceRequestBody":{"type":"object","properties":{"description":{"type":"string","description":"Description of the source.","example":"The source receives events from Github.","maxLength":4096},"name":{"type":"string","description":"Human readable name of the source.","example":"Github Webhook Source","minLength":1,"maxLength":40},"sourceId":{"type":"string","description":"Optional ID, if not filled in, it will be generated from name. Cannot be changed later.","example":"github-webhook-source","minLength":1,"maxLength":48},"type":{"type":"string","example":"http","enum":["http","otlp"]}},"example":{"sourceId":"github-webhook-source","type":"http","name":"Github Webhook Source","description":"The source receives events from Github."},"required":["type","name"]},"CreatedEntity":{"type":"object","properties":{"at":{"type":"string","description":"Date and time of deletion.","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"by":{"$ref":"#/components/schemas/By"}},"description":"Information about the entity creation.","example":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"required":["at","by"]},"DeleteSourceRequest":{"type":"object","properties":{"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"cascade":{"type":"boolean","description":"Also delete the destination Keboola tables and bucket, and hard-delete the source so it can be recreated with the same name.","default":false,"example":true},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48}},"example":{"branchId":"default","sourceId":"github-webhook-source","cascade":true},"required":["branchId","sourceId"]},"DeletedEntity":{"type":"object","properties":{"at":{"type":"string","description":"Date and time of deletion.","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"by":{"$ref":"#/components/schemas/By"}},"description":"Information about the deleted entity.","example":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"required":["at","by"]},"DisabledEntity":{"type":"object","properties":{"at":{"type":"string","description":"Date and time of disabling.","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"by":{"$ref":"#/components/schemas/By"},"reason":{"type":"string","description":"Why was the entity disabled?","example":"Disabled for recurring problems."}},"description":"Information about the disabled entity.","example":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"},"reason":"Disabled for recurring problems."},"required":["at","by","reason"]},"EntityVersions":{"type":"object","properties":{"page":{"$ref":"#/components/schemas/PaginatedResponse"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/Version"},"example":[{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}}]}},"example":{"versions":[{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}}],"page":{"limit":100,"totalCount":1000,"afterId":"my-object-123","lastId":"my-object-456"}},"required":["versions","page"]},"GenericError":{"type":"object","properties":{"error":{"type":"string","description":"Name of error.","example":"stream.internalError"},"message":{"type":"string","description":"Error message.","example":"Internal Error"},"statusCode":{"type":"integer","description":"HTTP status code.","example":500,"format":"int64"}},"description":"Generic error.","example":{"statusCode":500,"error":"stream.internalError","message":"Internal Error"},"required":["statusCode","error","message"]},"GetSinkRequest":{"type":"object","properties":{"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"sinkId":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48}},"example":{"branchId":"default","sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"},"required":["branchId","sourceId","sinkId"]},"GetSourceRequest":{"type":"object","properties":{"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48}},"example":{"branchId":"default","sourceId":"github-webhook-source"},"required":["branchId","sourceId"]},"GetTaskRequest":{"type":"object","properties":{"taskId":{"type":"string","description":"Unique ID of the task.","example":"task_1234"}},"example":{"taskId":"task_1234"},"required":["taskId"]},"HTTPSource":{"type":"object","properties":{"url":{"type":"string","description":"URL of the HTTP source. Contains secret used for authentication.","example":"https://stream-in.keboola.com/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"}},"description":"HTTP source details for \"type\" = \"http\".","example":{"url":"https://stream-in.keboola.com/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"required":["url"]},"Level":{"type":"object","properties":{"compressedSize":{"type":"integer","description":"Compressed size of data in bytes.","example":1,"format":"int64"},"firstRecordAt":{"type":"string","description":"Timestamp of the first received record.","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"lastRecordAt":{"type":"string","description":"Timestamp of the last received record.","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"recordsCount":{"type":"integer","example":1,"format":"int64"},"uncompressedSize":{"type":"integer","description":"Uncompressed size of data in bytes.","example":1,"format":"int64"}},"example":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"required":["recordsCount","compressedSize","uncompressedSize"]},"Levels":{"type":"object","properties":{"local":{"$ref":"#/components/schemas/Level"},"staging":{"$ref":"#/components/schemas/Level"},"target":{"$ref":"#/components/schemas/Level"}},"example":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}}},"ListSinkVersionsRequest":{"type":"object","properties":{"afterId":{"type":"string","description":"Request records after the ID.","default":"","example":"my-object-123"},"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"limit":{"type":"integer","description":"Maximum number of returned records.","default":100,"example":100,"format":"int64","minimum":1,"maximum":100},"sinkId":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48}},"example":{"branchId":"default","sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","afterId":"my-object-123","limit":100},"required":["branchId","sourceId","sinkId"]},"ListSinksRequest":{"type":"object","properties":{"afterId":{"type":"string","description":"Request records after the ID.","default":"","example":"my-object-123"},"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"limit":{"type":"integer","description":"Maximum number of returned records.","default":100,"example":100,"format":"int64","minimum":1,"maximum":100},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48}},"example":{"branchId":"default","sourceId":"github-webhook-source","afterId":"my-object-123","limit":100},"required":["branchId","sourceId"]},"ListSourceVersionsRequest":{"type":"object","properties":{"afterId":{"type":"string","description":"Request records after the ID.","default":"","example":"my-object-123"},"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"limit":{"type":"integer","description":"Maximum number of returned records.","default":100,"example":100,"format":"int64","minimum":1,"maximum":100},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48}},"example":{"branchId":"default","sourceId":"github-webhook-source","afterId":"my-object-123","limit":100},"required":["branchId","sourceId"]},"ListSourcesRequest":{"type":"object","properties":{"afterId":{"type":"string","description":"Request records after the ID.","default":"","example":"my-object-123"},"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"limit":{"type":"integer","description":"Maximum number of returned records.","default":100,"example":100,"format":"int64","minimum":1,"maximum":100}},"example":{"branchId":"default","afterId":"my-object-123","limit":100},"required":["branchId"]},"OTLPSource":{"type":"object","properties":{"baseUrl":{"type":"string","description":"Endpoint URL without the secret. Use this together with the `secret` field via the `Authorization: Bearer \u003csecret\u003e` header so the secret stays out of access/CDN/APM logs. The OpenTelemetry SDK appends /v1/logs, /v1/metrics, or /v1/traces automatically.","example":"https://stream-in.keboola.com/otlp/123/my-source"},"secret":{"type":"string","description":"48-character secret authenticating writes to this source. Send it as `Authorization: Bearer \u003csecret\u003e` to the `baseUrl`.","example":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"url":{"type":"string","description":"Endpoint URL with the secret embedded as the last path segment. Convenient for SDKs that authenticate by URL only. The OpenTelemetry SDK automatically appends /v1/logs, /v1/metrics, or /v1/traces based on the signal type — do not append a signal path yourself. Most SDK exporters reject or silently strip the suffix.","example":"https://stream-in.keboola.com/otlp/123/my-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"}},"description":"OTLP/HTTP source details for \"type\" = \"otlp\".","example":{"url":"https://stream-in.keboola.com/otlp/123/my-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX","baseUrl":"https://stream-in.keboola.com/otlp/123/my-source","secret":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"required":["url","baseUrl","secret"]},"PaginatedResponse":{"type":"object","properties":{"afterId":{"type":"string","description":"Current offset.","example":"my-object-123"},"lastId":{"type":"string","description":"ID of the last record in the response.","example":"my-object-456"},"limit":{"type":"integer","description":"Current limit.","example":100,"format":"int64"},"totalCount":{"type":"integer","description":"Total count of all records.","example":1000,"format":"int64"}},"example":{"limit":100,"totalCount":1000,"afterId":"my-object-123","lastId":"my-object-456"},"required":["afterId","limit","lastId","totalCount"]},"ServiceDetail":{"type":"object","properties":{"api":{"type":"string","description":"Name of the API","example":"stream"},"documentation":{"type":"string","description":"URL of the API documentation.","example":"https://stream.keboola.com/v1/documentation"}},"description":"Information about the service.","example":{"api":"stream","documentation":"https://stream.keboola.com/v1/documentation"},"required":["api","documentation"]},"SettingPatch":{"type":"object","properties":{"key":{"type":"string","description":"Key path.","example":"some.service.limit","minLength":1},"value":{"description":"A new key value. Use null to reset the value to the default value.","example":"1m20s"}},"description":"One setting key-value pair.","example":{"key":"some.service.limit","value":"1m20s"},"required":["key"]},"SettingResult":{"type":"object","properties":{"defaultValue":{"description":"Default value.","example":"30s"},"description":{"type":"string","description":"Key description.","example":"Minimal interval between uploads."},"key":{"type":"string","description":"Key path.","example":"some.service.limit"},"overwritten":{"type":"boolean","description":"True, if the default value is locally overwritten.","example":true},"protected":{"type":"boolean","description":"True, if only a super admin can modify the key.","example":false},"type":{"type":"string","description":"Value type.","example":"string","enum":["string","int","float","bool","[]string","[]int","[]float"]},"validation":{"type":"string","description":"Validation rules as a string definition.","example":"minDuration=15s"},"value":{"description":"Actual value.","example":"1m20s"}},"description":"One setting key-value pair.","example":{"key":"some.service.limit","type":"string","description":"Minimal interval between uploads.","value":"1m20s","defaultValue":"30s","overwritten":true,"protected":false,"validation":"minDuration=15s"},"required":["key","type","description","value","defaultValue","overwritten","protected"]},"SettingsPatch":{"type":"array","items":{"$ref":"#/components/schemas/SettingPatch"},"example":[{"key":"some.service.limit","value":"1m20s"}]},"SettingsResult":{"type":"object","properties":{"settings":{"type":"array","items":{"$ref":"#/components/schemas/SettingResult"},"example":[{"key":"some.service.limit","type":"string","description":"Minimal interval between uploads.","value":"1m20s","defaultValue":"30s","overwritten":true,"protected":false,"validation":"minDuration=15s"}]}},"example":{"settings":[{"key":"some.service.limit","type":"string","description":"Minimal interval between uploads.","value":"1m20s","defaultValue":"30s","overwritten":true,"protected":false,"validation":"minDuration=15s"}]}},"Sink":{"type":"object","properties":{"allowedSignals":{"type":"array","items":{"type":"string","description":"OTLP signal type — one of logs, metrics, or traces.","example":"logs","enum":["logs","metrics","traces"]},"description":"Restricts the sink to specific OTLP signal types. Empty (default) accepts all signals. Only relevant for OTLP sources; HTTP sources ignore this field.","example":["logs"]},"branchId":{"type":"integer","description":"ID of the branch.","example":345,"format":"int64"},"created":{"$ref":"#/components/schemas/CreatedEntity"},"deleted":{"$ref":"#/components/schemas/DeletedEntity"},"description":{"type":"string","description":"Description of the source.","example":"The sink stores records to a table.","maxLength":4096},"disabled":{"$ref":"#/components/schemas/DisabledEntity"},"name":{"type":"string","description":"Human readable name of the sink.","example":"Raw Data Sink","minLength":1,"maxLength":40},"projectId":{"type":"integer","description":"ID of the project.","example":123,"format":"int64"},"sinkId":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"table":{"$ref":"#/components/schemas/TableSink"},"type":{"type":"string","example":"table","enum":["table"]},"version":{"$ref":"#/components/schemas/Version"}},"description":"A mapping from imported data to a destination table.","example":{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}},"version":{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"created":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"deleted":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"disabled":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"},"reason":"Disabled for recurring problems."}},"required":["projectId","branchId","sourceId","sinkId","type","name","description","version","created"]},"SinkFile":{"type":"object","properties":{"closingAt":{"type":"string","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"importedAt":{"type":"string","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"importingAt":{"type":"string","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"openedAt":{"type":"string","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"retryAfter":{"type":"string","description":"Next attempt time.","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"retryAttempt":{"type":"integer","description":"Number of failed attempts.","example":3,"format":"int64"},"retryReason":{"type":"string","description":"Reason of the last failed attempt.","example":"network problem"},"state":{"type":"string","example":"writing","enum":["writing","closing","importing","imported"]},"statistics":{"$ref":"#/components/schemas/SinkFileStatistics"}},"example":{"state":"writing","openedAt":"2022-04-28T14:20:04.000Z","closingAt":"2022-04-28T14:20:04.000Z","importingAt":"2022-04-28T14:20:04.000Z","importedAt":"2022-04-28T14:20:04.000Z","retryAttempt":3,"retryReason":"network problem","retryAfter":"2022-04-28T14:20:04.000Z","statistics":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}}}},"required":["state","openedAt"]},"SinkFileStatistics":{"type":"object","properties":{"levels":{"$ref":"#/components/schemas/Levels"},"total":{"$ref":"#/components/schemas/Level"}},"example":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}}},"required":["total","levels"]},"SinkFiles":{"type":"array","items":{"$ref":"#/components/schemas/SinkFile"},"description":"List of recent sink files.","example":[{"state":"writing","openedAt":"2022-04-28T14:20:04.000Z","closingAt":"2022-04-28T14:20:04.000Z","importingAt":"2022-04-28T14:20:04.000Z","importedAt":"2022-04-28T14:20:04.000Z","retryAttempt":3,"retryReason":"network problem","retryAfter":"2022-04-28T14:20:04.000Z","statistics":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}}}}]},"SinkSettingsPatch":{"type":"object","properties":{"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"changeDescription":{"type":"string","description":"Description of the modification, description of the version.","example":"Updated settings."},"settings":{"$ref":"#/components/schemas/SettingsPatch"},"sinkId":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48}},"example":{"branchId":"default","sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","changeDescription":"Updated settings.","settings":[{"key":"some.service.limit","value":"1m20s"}]},"required":["branchId","sourceId","sinkId"]},"SinkStatisticsFilesResult":{"type":"object","properties":{"files":{"$ref":"#/components/schemas/SinkFiles"}},"example":{"files":[{"state":"writing","openedAt":"2022-04-28T14:20:04.000Z","closingAt":"2022-04-28T14:20:04.000Z","importingAt":"2022-04-28T14:20:04.000Z","importedAt":"2022-04-28T14:20:04.000Z","retryAttempt":3,"retryReason":"network problem","retryAfter":"2022-04-28T14:20:04.000Z","statistics":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}}}}]},"required":["files"]},"SinkStatisticsRequest":{"type":"object","properties":{"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"failedFiles":{"type":"boolean","description":"Filter for not imported files. If set to true, only not imported files will be included.","default":false,"example":false},"sinkId":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48}},"example":{"branchId":"default","sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","failedFiles":false},"required":["branchId","sourceId","sinkId"]},"SinkStatisticsTotalResult":{"type":"object","properties":{"levels":{"$ref":"#/components/schemas/Levels"},"total":{"$ref":"#/components/schemas/Level"}},"example":{"total":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"levels":{"local":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"staging":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1},"target":{"firstRecordAt":"2022-04-28T14:20:04.000Z","lastRecordAt":"2022-04-28T14:20:04.000Z","recordsCount":1,"compressedSize":1,"uncompressedSize":1}}},"required":["levels","total"]},"SinkVersionRequest":{"type":"object","properties":{"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"sinkId":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"versionNumber":{"type":"integer","description":"Version number counted from 1.","example":3,"format":"int64","minimum":1}},"example":{"branchId":"default","sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","versionNumber":3},"required":["branchId","sourceId","sinkId","versionNumber"]},"Sinks":{"type":"array","items":{"$ref":"#/components/schemas/Sink"},"description":"List of sinks, max 100 sinks per a source.","example":[{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}},"version":{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"created":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"deleted":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"disabled":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"},"reason":"Disabled for recurring problems."}}]},"SinksList":{"type":"object","properties":{"branchId":{"type":"integer","description":"ID of the branch.","example":345,"format":"int64"},"page":{"$ref":"#/components/schemas/PaginatedResponse"},"projectId":{"type":"integer","description":"ID of the project.","example":123,"format":"int64"},"sinks":{"$ref":"#/components/schemas/Sinks"},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48}},"description":"List of sources, max 100 sinks per a source.","example":{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","page":{"limit":100,"totalCount":1000,"afterId":"my-object-123","lastId":"my-object-456"},"sinks":[{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}},"version":{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"created":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"deleted":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"disabled":{"at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"},"reason":"Disabled for recurring problems."}}]},"required":["projectId","branchId","sourceId","page","sinks"]},"Source":{"type":"object","properties":{"branchId":{"type":"integer","description":"ID of the branch.","example":345,"format":"int64"},"created":{"$ref":"#/components/schemas/CreatedEntity"},"deleted":{"$ref":"#/components/schemas/DeletedEntity"},"description":{"type":"string","description":"Description of the source.","example":"The source receives events from Github.","maxLength":4096},"disabled":{"$ref":"#/components/schemas/DisabledEntity"},"http":{"$ref":"#/components/schemas/HTTPSource"},"name":{"type":"string","description":"Human readable name of the source.","example":"Github Webhook Source","minLength":1,"maxLength":40},"otlp":{"$ref":"#/components/schemas/OTLPSource"},"projectId":{"type":"integer","description":"ID of the project.","example":123,"format":"int64"},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"type":{"type":"string","example":"http","enum":["http","otlp"]},"version":{"$ref":"#/components/schemas/Version"}},"description":"Source of data for further processing, start of the stream, max 100 sources per a branch.","example":{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","name":"My OTLP Source","otlp":{"baseUrl":"https://stream-in.keboola.com/otlp/1234/my-otlp-source","secret":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX","url":"https://stream-in.keboola.com/otlp/1234/my-otlp-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"projectId":1234,"sourceId":"my-otlp-source","type":"otlp","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}},"required":["projectId","branchId","sourceId","type","name","description","version","created"]},"SourceSettingsPatch":{"type":"object","properties":{"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"changeDescription":{"type":"string","description":"Description of the modification, description of the version.","example":"Updated settings."},"settings":{"$ref":"#/components/schemas/SettingsPatch"},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48}},"example":{"branchId":"default","sourceId":"github-webhook-source","changeDescription":"Updated settings.","settings":[{"key":"some.service.limit","value":"1m20s"}]},"required":["branchId","sourceId"]},"SourceVersionRequest":{"type":"object","properties":{"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"versionNumber":{"type":"integer","description":"Version number counted from 1.","example":3,"format":"int64","minimum":1}},"example":{"branchId":"default","sourceId":"github-webhook-source","versionNumber":3},"required":["branchId","sourceId","versionNumber"]},"Sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"},"description":"List of sources, max 100 sources per a branch.","example":[{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","http":{"url":"https://stream-in.keboola.com/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"name":"My HTTP Source","projectId":1234,"sourceId":"my-http-source","type":"http","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}},{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","name":"My OTLP Source","otlp":{"baseUrl":"https://stream-in.keboola.com/otlp/1234/my-otlp-source","secret":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX","url":"https://stream-in.keboola.com/otlp/1234/my-otlp-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"projectId":1234,"sourceId":"my-otlp-source","type":"otlp","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}}]},"SourcesList":{"type":"object","properties":{"branchId":{"type":"integer","description":"ID of the branch.","example":345,"format":"int64"},"page":{"$ref":"#/components/schemas/PaginatedResponse"},"projectId":{"type":"integer","description":"ID of the project.","example":123,"format":"int64"},"sources":{"$ref":"#/components/schemas/Sources"}},"description":"List of sources, max 100 sources per a branch.","example":{"projectId":123,"branchId":345,"page":{"limit":100,"totalCount":1000,"afterId":"my-object-123","lastId":"my-object-456"},"sources":[{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","http":{"url":"https://stream-in.keboola.com/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"name":"My HTTP Source","projectId":1234,"sourceId":"my-http-source","type":"http","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}},{"branchId":5678,"created":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"}},"description":"","name":"My OTLP Source","otlp":{"baseUrl":"https://stream-in.keboola.com/otlp/1234/my-otlp-source","secret":"EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX","url":"https://stream-in.keboola.com/otlp/1234/my-otlp-source/EXAMPLE-SECRET-PLACEHOLDER-XXXXXXXXXXXXXXXXXXXXX"},"projectId":1234,"sourceId":"my-otlp-source","type":"otlp","version":{"at":"2024-01-15T10:00:00.000Z","by":{"tokenDesc":"john.green@company.com","tokenId":"896455","type":"user","userId":"578621","userName":"John Green"},"description":"New source.","hash":"f43e93acd97eceb3","number":1}}]},"required":["projectId","branchId","page","sources"]},"TableColumn":{"type":"object","properties":{"defaultValue":{"type":"string","description":"Fallback value if path doesn't exist.","example":"1"},"name":{"type":"string","description":"Column name.","example":"id-col"},"path":{"type":"string","description":"Path to the value.","example":"foo.bar[0]"},"rawString":{"type":"boolean","description":"Set to true if path value should use raw string instead of json-encoded value.","example":true},"template":{"$ref":"#/components/schemas/TableColumnTemplate"},"type":{"type":"string","description":"Column mapping type. This represents a static mapping (e.g. `body` or `headers`), or a custom mapping using a template language (`template`).","example":"body","enum":["uuid","datetime","ip","body","headers","path","template"]}},"description":"An output mapping defined by a template.","example":{"type":"body","name":"id-col","path":"foo.bar[0]","defaultValue":"1","rawString":true,"template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}},"required":["type","name"]},"TableColumnTemplate":{"type":"object","properties":{"content":{"type":"string","example":"body.foo + \"-\" + body.bar","minLength":1,"maxLength":4096},"language":{"type":"string","example":"jsonnet","enum":["jsonnet"]}},"description":"Template column definition, for \"type\" = \"template\".","example":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"},"required":["language","content"]},"TableColumns":{"type":"array","items":{"$ref":"#/components/schemas/TableColumn"},"description":"List of export column mappings. An export may have a maximum of 100 columns.","example":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}],"minItems":1,"maxItems":100},"TableMapping":{"type":"object","properties":{"columns":{"$ref":"#/components/schemas/TableColumns"}},"description":"Table mapping definition.","example":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]},"required":["columns"]},"TableSink":{"type":"object","properties":{"mapping":{"$ref":"#/components/schemas/TableMapping"},"tableId":{"type":"string","example":"in.c-bucket.table"},"type":{"type":"string","example":"keboola","enum":["keboola"]}},"description":"Table sink configuration for \"type\" = \"table\".","example":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}},"required":["type","tableId","mapping"]},"TableSinkCreate":{"type":"object","properties":{"mapping":{"$ref":"#/components/schemas/TableMapping"},"tableId":{"type":"string","example":"in.c-bucket.table"},"type":{"type":"string","example":"keboola","enum":["keboola"]}},"description":"Table sink configuration for \"type\" = \"table\".","example":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}},"required":["type","tableId","mapping"]},"TableSinkUpdate":{"type":"object","properties":{"mapping":{"$ref":"#/components/schemas/TableMapping"},"tableId":{"type":"string","example":"in.c-bucket.table"},"type":{"type":"string","example":"keboola","enum":["keboola"]}},"description":"Table sink configuration for \"type\" = \"table\".","example":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}}},"Task":{"type":"object","properties":{"createdAt":{"type":"string","description":"Date and time of the task creation.","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"duration":{"type":"integer","description":"Duration of the task in milliseconds.","example":123456789,"format":"int64"},"error":{"type":"string","example":"abc123"},"finishedAt":{"type":"string","description":"Date and time of the task end.","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"isFinished":{"type":"boolean","description":"Shortcut for status != \"processing\".","example":false},"outputs":{"$ref":"#/components/schemas/TaskOutputs"},"result":{"type":"string","example":"abc123"},"status":{"type":"string","description":"Task status, one of: processing, success, error","example":"success","enum":["processing","success","error"]},"taskId":{"type":"string","description":"Unique ID of the task.","example":"task_1234"},"type":{"type":"string","description":"Task type.","example":"abc123"},"url":{"type":"string","description":"URL of the task.","example":"abc123"}},"description":"An asynchronous task.","example":{"taskId":"task_1234","type":"abc123","url":"abc123","status":"success","isFinished":false,"createdAt":"2022-04-28T14:20:04.000Z","finishedAt":"2022-04-28T14:20:04.000Z","duration":123456789,"result":"abc123","error":"abc123","outputs":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}},"required":["taskId","type","url","status","isFinished","createdAt"]},"TaskOutputs":{"type":"object","properties":{"branchId":{"type":"integer","description":"ID of the branch.","example":345,"format":"int64"},"projectId":{"type":"integer","description":"ID of the project.","example":123,"format":"int64"},"sinkId":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"url":{"type":"string","description":"Absolute URL of the entity.","example":"abc123"}},"description":"Outputs generated by the task.","example":{"url":"abc123","projectId":123,"branchId":345,"sourceId":"github-webhook-source","sinkId":"github-pr-table-sink"}},"TestResult":{"type":"object","properties":{"branchId":{"type":"integer","description":"ID of the branch.","example":345,"format":"int64"},"projectId":{"type":"integer","description":"ID of the project.","example":123,"format":"int64"},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"tables":{"type":"array","items":{"$ref":"#/components/schemas/TestResultTable"},"description":"Table for each configured sink.","example":[{"sinkId":"github-pr-table-sink","tableId":"in.c-bucket.table","rows":[{"columns":[{"name":"id","value":"12345"}]}]}]}},"description":"Result of the test endpoint.","example":{"projectId":123,"branchId":345,"sourceId":"github-webhook-source","tables":[{"sinkId":"github-pr-table-sink","tableId":"in.c-bucket.table","rows":[{"columns":[{"name":"id","value":"12345"}]}]}]},"required":["projectId","branchId","sourceId","tables"]},"TestResultColumn":{"type":"object","properties":{"name":{"type":"string","description":"Column name.","example":"id"},"value":{"type":"string","description":"Column value.","example":"12345"}},"description":"Generated table column value, part of the test result.","example":{"name":"id","value":"12345"},"required":["name","value"]},"TestResultRow":{"type":"object","properties":{"columns":{"type":"array","items":{"$ref":"#/components/schemas/TestResultColumn"},"description":"Generated columns.","example":[{"name":"id","value":"12345"}]}},"description":"Generated table row, part of the test result.","example":{"columns":[{"name":"id","value":"12345"}]},"required":["columns"]},"TestResultTable":{"type":"object","properties":{"rows":{"type":"array","items":{"$ref":"#/components/schemas/TestResultRow"},"description":"Generated rows.","example":[{"columns":[{"name":"id","value":"12345"}]}]},"sinkId":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"tableId":{"type":"string","example":"in.c-bucket.table"}},"description":"Generated table rows, part of the test result.","example":{"sinkId":"github-pr-table-sink","tableId":"in.c-bucket.table","rows":[{"columns":[{"name":"id","value":"12345"}]}]},"required":["sinkId","tableId","rows"]},"TestSourceRequest":{"type":"object","properties":{"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"signal":{"type":"string","description":"OTLP signal type — one of logs, metrics, or traces.","example":"logs","enum":["logs","metrics","traces"]},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48}},"example":{"branchId":"default","sourceId":"github-webhook-source","signal":"logs"},"required":["branchId","sourceId"]},"UpdateSinkRequest":{"type":"object","properties":{"allowedSignals":{"type":"array","items":{"type":"string","description":"OTLP signal type — one of logs, metrics, or traces.","example":"logs","enum":["logs","metrics","traces"]},"description":"Restricts the sink to specific OTLP signal types. Empty (default) accepts all signals. Only relevant for OTLP sources; HTTP sources ignore this field.","example":["logs"]},"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"changeDescription":{"type":"string","description":"Description of the modification, description of the version.","example":"Renamed."},"description":{"type":"string","description":"Description of the source.","example":"The sink stores records to a table.","maxLength":4096},"name":{"type":"string","description":"Human readable name of the sink.","example":"Raw Data Sink","minLength":1,"maxLength":40},"sinkId":{"type":"string","description":"Unique ID of the sink.","example":"github-pr-table-sink","minLength":1,"maxLength":48},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"table":{"$ref":"#/components/schemas/TableSinkUpdate"},"type":{"type":"string","example":"table","enum":["table"]}},"example":{"branchId":"default","sourceId":"github-webhook-source","sinkId":"github-pr-table-sink","changeDescription":"Renamed.","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}}},"required":["branchId","sourceId","sinkId"]},"UpdateSinkRequestBody":{"type":"object","properties":{"allowedSignals":{"type":"array","items":{"type":"string","example":"logs","enum":["logs","metrics","traces"]},"description":"Restricts the sink to specific OTLP signal types. Empty (default) accepts all signals. Only relevant for OTLP sources; HTTP sources ignore this field.","example":["logs"]},"changeDescription":{"type":"string","description":"Description of the modification, description of the version.","example":"Renamed."},"description":{"type":"string","description":"Description of the source.","example":"The sink stores records to a table.","maxLength":4096},"name":{"type":"string","description":"Human readable name of the sink.","example":"Raw Data Sink","minLength":1,"maxLength":40},"table":{"$ref":"#/components/schemas/TableSinkUpdate"},"type":{"type":"string","example":"table","enum":["table"]}},"example":{"changeDescription":"Renamed.","type":"table","name":"Raw Data Sink","description":"The sink stores records to a table.","allowedSignals":["logs"],"table":{"type":"keboola","tableId":"in.c-bucket.table","mapping":{"columns":[{"type":"uuid","name":"id-col"},{"type":"datetime","name":"datetime-col"},{"type":"ip","name":"ip-col"},{"type":"headers","name":"headers-col"},{"type":"body","name":"body-col"},{"type":"path","name":"path-col","path":"foo.bar[0]","rawString":true,"defaultValue":""},{"type":"template","name":"template-col","template":{"language":"jsonnet","content":"body.foo + \"-\" + body.bar"}}]}}}},"UpdateSourceRequest":{"type":"object","properties":{"branchId":{"type":"string","description":"ID of the branch or \"default\".","example":"default"},"changeDescription":{"type":"string","description":"Description of the modification, description of the version.","example":"Renamed."},"description":{"type":"string","description":"Description of the source.","example":"The source receives events from Github.","maxLength":4096},"name":{"type":"string","description":"Human readable name of the source.","example":"Github Webhook Source","minLength":1,"maxLength":40},"sourceId":{"type":"string","description":"Unique ID of the source.","example":"github-webhook-source","minLength":1,"maxLength":48},"type":{"type":"string","example":"http","enum":["http","otlp"]}},"example":{"branchId":"default","sourceId":"github-webhook-source","changeDescription":"Renamed.","type":"http","name":"Github Webhook Source","description":"The source receives events from Github."},"required":["branchId","sourceId"]},"UpdateSourceRequestBody":{"type":"object","properties":{"changeDescription":{"type":"string","description":"Description of the modification, description of the version.","example":"Renamed."},"description":{"type":"string","description":"Description of the source.","example":"The source receives events from Github.","maxLength":4096},"name":{"type":"string","description":"Human readable name of the source.","example":"Github Webhook Source","minLength":1,"maxLength":40},"type":{"type":"string","example":"http","enum":["http","otlp"]}},"example":{"changeDescription":"Renamed.","type":"http","name":"Github Webhook Source","description":"The source receives events from Github."}},"UpdateSourceSettingsRequestBody":{"type":"object","properties":{"changeDescription":{"type":"string","description":"Description of the modification, description of the version.","example":"Updated settings."},"settings":{"type":"array","items":{"$ref":"#/components/schemas/SettingPatch"},"example":[{"key":"some.service.limit","value":"1m20s"}]}},"example":{"changeDescription":"Updated settings.","settings":[{"key":"some.service.limit","value":"1m20s"}]}},"Version":{"type":"object","properties":{"at":{"type":"string","description":"Date and time of the modification.","example":"2022-04-28T14:20:04.000Z","format":"date-time"},"by":{"$ref":"#/components/schemas/By"},"description":{"type":"string","description":"Description of the change.","example":"The reason for the last change was..."},"hash":{"type":"string","description":"Hash of the entity state.","example":"f43e93acd97eceb3"},"number":{"type":"integer","description":"Version number counted from 1.","example":3,"format":"int64","minimum":1}},"description":"Version of the entity.","example":{"number":3,"hash":"f43e93acd97eceb3","description":"The reason for the last change was...","at":"2022-04-28T14:20:04.000Z","by":{"type":"user","tokenId":"896455","tokenDesc":"john.green@company.com","userId":"578621","userName":"John Green"}},"required":["number","hash","at","by","description"]}},"securitySchemes":{"storage-api-token":{"type":"apiKey","description":"Storage Api Token Authentication.","name":"X-StorageApi-Token","in":"header"}}},"tags":[{"name":"stream","description":"A service for continuously importing data to the Keboola platform."}]}