Table of Contents

Search

  1. Preface
  2. Introduction to Cloud Integration Hub
  3. Hub administration
  4. Project and Asset Management
  5. Applications
  6. Topics
  7. Data Integration tasks
  8. File ingestion tasks
  9. Publications
  10. Subscriptions
  11. Tracking and monitoring
  12. Cloud Integration Hub REST APIs
  13. Glossary

Cloud Integration Hub

Cloud Integration Hub

Publish Data REST API

Publish Data REST API

Use the
Cloud Integration Hub
Publish Data REST API to publish data transactions directly to a topic on the
Cloud Integration Hub
publication repository.
You can use the Publish Data API to publish data with publications that publish data directly to a topic with an API. You cannot use the API with publications that trigger a Data Integration task.
To publish data through the API, copy the URL of the API from the Publication page in
Cloud Integration Hub
.
When you use a private publication repository, if you change the Secure Agent on which the publication repository service runs or the port number of the publication repository, the URL of the API changes accordingly. In this case, be sure to notify API users and consumers of the new URL.
Request Headers
Include the following headers in the request:
Accept - application/json Content-Type - application/json
To support UTF-8 character encoding, for example, to use Japanese characters in table and column names, include the following headers in the request:
Accept-Charset: charset=utf-8 Content-Type: application/json;charset=utf-8
Request syntax
Use the following syntax to publish data directly to a topic:
{ "<table_name>": [ {"<column_name>":"<data>"} ] }
A topic table name must begin with an alphabetic character or underscore and can contain only ASCII alphanumeric characters or underscores. The name must be unique in the
Cloud Integration Hub
repository.
For example:
{ "Sales": [ {"Opportunity_Name":"string”,"Opportunity_Owner_Id":"string"} ], "Orders": [ {"Account_Name":"string","Account_Id":"string","OrderId": "string"} ] }
DATETIME field
If the topic to which you publish includes a DATETIME field, you must use the following format for the DATETIME value:
yyyy-MM-dd HH:mm:ss.SSS
.

0 COMMENTS

We’d like to hear from you!