Internal site. Jolli authentication required to view.
Skip to Content
API ReferenceInput ConnectorsPOST /v0/pipelines/{pipeline_name}/ingress/{table_name}

Insert Data

POST/v0/pipelines/{pipeline_name}/ingress/{table_name}Input Connectors

Try it

POST/v0/pipelines/{pipeline_name}/ingress/{table_name}
Authentication
Parameters
Request body (text/plain)

Push data to a SQL table.

The client sends data encoded using the format specified in the ?format= parameter as a body of the request. The contents of the data must match the SQL table schema specified in table_name

The pipeline ingests data as it arrives without waiting for the end of the request. Successful HTTP response indicates that all data has been ingested successfully.

On success, returns a completion token that can be passed to the ‘/completion_status’ endpoint to check whether the pipeline has fully processed the data.

Authentication

  • JSON web token (JWT) or API keyBearer token

Parameters

Path parameters

NameTypeRequiredDescription
pipeline_namestringYesUnique pipeline name
table_namestringYesSQL table name. Unquoted SQL names have to be capitalized. Quoted SQL names have to exactly match the case from the SQL program.

Query parameters

NameTypeRequiredDescription
forcebooleanYesWhen `true`, push data to the pipeline even if the pipeline is paused. The default value is `false`
formatstringYesInput data format, either `csv' or 'json'.
arraybooleanNoSet to `true` if updates in this stream are packaged into JSON arrays (used in conjunction with `format=json`). The default values is `false`.
update_formatobjectNoJSON data change event format (used in conjunction with `format=json`). The default value is 'insert_delete'.

Request body

Content type: text/plain

  • string

Response

200Data successfully delivered to the pipeline. The body of the response contains a completion token that can be passed to the '/completion_status' endpoint to check whether the pipeline has fully processed the data.application/json
  • object
    Response to a completion token creation request.
    • tokenstringrequired
      Completion token. An opaque string associated with the current position in the input stream generated by an input connector. Pass this string to the `/completion_status` endpoint to check whether all inputs associated with the token have been fully processed by the pipeline.
400application/json
  • object
    Information returned by REST API endpoints on error.
    • detailsobjectrequired
      Detailed error metadata. The contents of this field is determined by `error_code`.
    • error_codestringrequired
      Error code is a string that specifies this error type.
    • messagestringrequired
      Human-readable error message.
404Pipeline and/or table with that name does not existapplication/json
  • object
    Information returned by REST API endpoints on error.
    • detailsobjectrequired
      Detailed error metadata. The contents of this field is determined by `error_code`.
    • error_codestringrequired
      Error code is a string that specifies this error type.
    • messagestringrequired
      Human-readable error message.
500application/json
  • object
    Information returned by REST API endpoints on error.
    • detailsobjectrequired
      Detailed error metadata. The contents of this field is determined by `error_code`.
    • error_codestringrequired
      Error code is a string that specifies this error type.
    • messagestringrequired
      Human-readable error message.
503application/json
  • object
    Information returned by REST API endpoints on error.
    • detailsobjectrequired
      Detailed error metadata. The contents of this field is determined by `error_code`.
    • error_codestringrequired
      Error code is a string that specifies this error type.
    • messagestringrequired
      Human-readable error message.
Request
curl -X POST 'https://api.example.com/v0/pipelines/{pipeline_name}/ingress/{table_name}?force=<force>&format=<format>&array=<array>&update_format=<update_format>' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -H 'Content-Type: text/plain' \ -d '"string"'