Create a Push source
Create a Push source
A Push source requires you to use the Push API to manage its content, whereas a non-Push source manages its content with Coveo crawlers.
If you want to index content from enterprise systems for which no specific or generic connector is appropriate in the Coveo Platform, you need to create a Push source.
Note
Prerequisites:
|
Use the Create a source from simple configuration operation to create a Push source in a Coveo organization.
Note
You can also create a source from the Coveo Administration Console. |
Request definition
|
Request body
|
In the request path:
-
Replace
<MyOrganizationId>
with the actual ID of the target Coveo organization (see Retrieve the organization ID).
In the Authorization
HTTP header:
-
Replace
<MyAccessToken>
with an access token that grants the privilege to edit sources (that is, the Edit access level on the Sources domain) in the target organization (see Create an API key, Get the privileges of an access token, Manage privileges, and Get your Coveo access token).
In the request body:
-
Replace
<MyPushSourceName>
with a meaningfulname
string.
You can’t change the name of a source once it has been created, so make sure you choose one that fits the intended content of that source. |
-
Replace
<"PRIVATE"|"SECURED"|"SHARED">
with one of the validsourceVisibility
strings.
Notes
|
The body of a successful response contains information about the source you just created.
The id
property value is important, as it’s a required parameter in many Coveo REST API operations.
You can always retrieve this ID later.
Leading practice: Create a security identity provider
Immediately after you create a secured Push source, you should create a security identity provider for it (see Create a security identity provider for a secured Push source). A security identity provider allows you to push expandable identity definitions in order to faithfully replicate the security model of the system you’re planning to index with your source. |
Sample request
The following example shows how to create a secured Push source.
Request definition
|
Request body
|
Successful response - 201 Created
|