Event Repository API Reference
If your team is unable to use the SDK because your solution is not Java based, you can post events directly to the event repository. This reference provides the basic format for each event.
To post an event:
- Batch n number of events at a time for efficiency.
- Set the following HTTP header:
Content-Type: application/json
- If authentication is enabled on the event repository, set the following HTTP header:
CC_Authorization: <bearerString>
Note:To authenticate a RESTful API using a bearerString, users can obtain the bearer token by referring to the Authenticating RESTful APIs instructions provided for generating the token.
- POST to the event repository URL (for example, http://server:port/sccwebclient/events/_bulk_docs)
Note: While the URL you might configure when you are using the SDK ends with
/events
, the actual URL that events get posted to by RESTful API clients is
/events/_bulk_docs